Documentation ¶
Index ¶
- Variables
- type ActiveMsg
- type Button
- func (m *Button) Init() tea.Cmd
- func (m *Button) SetLabel(label string) *Button
- func (m *Button) SetTextActiveStyle(style lipgloss.Style) *Button
- func (m *Button) SetTextBaseStyle(style lipgloss.Style) *Button
- func (m *Button) SetTextFocusStyle(style lipgloss.Style) *Button
- func (m *Button) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Button) View() string
- type ButtonState
- type ButtonStyle
- type Component
- type FocusMsg
- type Option
- func (m *Option) Init() tea.Cmd
- func (m *Option) SetCursor(cursor string) *Option
- func (m *Option) SetCursorActiveStyle(style lipgloss.Style) *Option
- func (m *Option) SetCursorBaseStyle(style lipgloss.Style) *Option
- func (m *Option) SetCursorFocusStyle(style lipgloss.Style) *Option
- func (m *Option) SetLabel(label string) *Option
- func (m *Option) SetTextActiveStyle(style lipgloss.Style) *Option
- func (m *Option) SetTextBaseStyle(style lipgloss.Style) *Option
- func (m *Option) SetTextFocusStyle(style lipgloss.Style) *Option
- func (m *Option) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Option) View() string
- type OptionProps
- type OptionState
- type OptionStyle
- type Text
- type TextStyle
- type WithChild
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ButtonDefaultStyle = ButtonStyle{ TextBase: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). Padding(0, 1), TextFocus: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). Bold(true). Background(lipgloss.Color("33")). Padding(0, 1), TextActive: lipgloss.NewStyle(). Bold(true). Foreground(lipgloss.Color("33")). Padding(0, 1), } )
View Source
var ( OptionDefaultStyle = OptionStyle{ TextBase: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). MarginRight(1), TextFocus: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). Bold(true). Background(lipgloss.Color("33")). MarginRight(1), TextActive: lipgloss.NewStyle(). Foreground(lipgloss.Color("33")). Bold(true). MarginRight(1), CursorBase: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). PaddingRight(1), CursorFocus: lipgloss.NewStyle(). Foreground(lipgloss.Color("15")). Bold(true). Background(lipgloss.Color("33")). PaddingRight(1), CursorActive: lipgloss.NewStyle(). Foreground(lipgloss.Color("33")). Bold(true). PaddingRight(1), } )
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct {
// contains filtered or unexported fields
}
func (*Button) SetTextActiveStyle ¶
type ButtonState ¶
type ButtonState struct {
// contains filtered or unexported fields
}
type ButtonStyle ¶
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func (*Option) SetCursorActiveStyle ¶
func (*Option) SetCursorBaseStyle ¶
func (*Option) SetCursorFocusStyle ¶
func (*Option) SetTextActiveStyle ¶
type OptionProps ¶
type OptionProps struct {
Label string
}
type OptionState ¶
type OptionState struct {
// contains filtered or unexported fields
}
type OptionStyle ¶
type Text ¶
type Text struct {
// contains filtered or unexported fields
}
func (*Text) SetContent ¶
Click to show internal directories.
Click to hide internal directories.