Documentation
¶
Index ¶
- Variables
- type Field
- type FieldStyle
- type Form
- func (m *Form) Completed() bool
- func (m *Form) Error(name string) error
- func (m *Form) Errors() map[string]error
- func (m *Form) Init() tea.Cmd
- func (m *Form) Keys() []key.Binding
- func (m *Form) SetSelectedIndex(index int) *Form
- func (m *Form) SetStep(step int) *Form
- func (m *Form) Update(msg tea.Msg) (*Form, tea.Cmd)
- func (m *Form) Value(name string) any
- func (m *Form) Values() map[string]any
- func (m *Form) View() string
- type FormItem
- type FormKeyMap
- type FormState
- type Hide
- type Input
- func (m *Input) Error() error
- func (m *Input) Init() tea.Cmd
- func (m *Input) SetCursorStyle(style lipgloss.Style) *Input
- func (m *Input) SetErrorStyle(style lipgloss.Style) *Input
- func (m *Input) SetPlaceholder(placeholder string) *Input
- func (m *Input) SetPlaceholderBaseStyle(style lipgloss.Style) *Input
- func (m *Input) SetPlaceholderFocusStyle(style lipgloss.Style) *Input
- func (m *Input) SetPromptBaseStyle(style lipgloss.Style) *Input
- func (m *Input) SetPromptFocusStyle(style lipgloss.Style) *Input
- func (m *Input) SetTextBaseStyle(style lipgloss.Style) *Input
- func (m *Input) SetTextFocusStyle(style lipgloss.Style) *Input
- func (m *Input) SetValidateFunc(fn func(string) error) *Input
- func (m *Input) SetValue(value string) *Input
- func (m *Input) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Input) Validate() bool
- func (m *Input) Value() string
- func (m *Input) View() string
- type InputState
- type InputStyle
- type Loader
- type Select
- type SelectItemProps
- type SelectKeyMap
- type SelectState
- type Skip
- type WithHide
- type WithKeys
- type WithSkip
- type WithValidation
- type WithValue
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InputDefaultStyle = InputStyle{ TextBase: lipgloss.NewStyle().Foreground(lipgloss.Color("15")), TextFocus: lipgloss.NewStyle().Foreground(lipgloss.Color("15")), PromptBase: lipgloss.NewStyle().Foreground(lipgloss.Color("15")), PromptFocus: lipgloss.NewStyle().Foreground(lipgloss.Color("15")), PlaceholderBase: lipgloss.NewStyle().Foreground(lipgloss.Color("8")), PlaceholderFocus: lipgloss.NewStyle().Foreground(lipgloss.Color("8")), Cursor: lipgloss.NewStyle().Foreground(lipgloss.Color("33")), Error: lipgloss.NewStyle().Foreground(lipgloss.Color("9")), } )
Functions ¶
This section is empty.
Types ¶
type FieldStyle ¶
type Form ¶
type Form struct {
// contains filtered or unexported fields
}
func (*Form) SetSelectedIndex ¶
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
func (*Input) SetPlaceholder ¶
func (*Input) SetPlaceholderBaseStyle ¶
func (*Input) SetPlaceholderFocusStyle ¶
func (*Input) SetPromptFocusStyle ¶
type InputState ¶
type InputState struct {
// contains filtered or unexported fields
}
type InputStyle ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (*Loader) SetBindings ¶
type Select ¶
type Select struct {
// contains filtered or unexported fields
}
func NewSelect ¶
func NewSelect(items []SelectItemProps) *Select
func (*Select) SetSelectedIndex ¶
type SelectItemProps ¶
type SelectState ¶
type SelectState struct {
// contains filtered or unexported fields
}
type WithValidation ¶
Click to show internal directories.
Click to hide internal directories.