Documentation
¶
Overview ¶
Package tabs provides a tab bar component for navigation.
Index ¶
- type Model
- func (m Model) Active() int
- func (m Model) ActiveTab() string
- func (m Model) Init() tea.Cmd
- func (m *Model) Next()
- func (m *Model) Prev()
- func (m *Model) SetActive(index int)
- func (m *Model) SetStyles(styles *theme.Styles)
- func (m *Model) SetWidth(width int)
- func (m Model) Update(_ tea.Msg) (Model, tea.Cmd)
- func (m Model) View() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model represents the tab bar component.
func (*Model) SetStyles ¶ added in v0.5.0
SetStyles updates the component's styles (for runtime theme changes).
Click to show internal directories.
Click to hide internal directories.