Documentation ¶ Index ¶ type Choice type Model func New(choices []Choice, maxColumns, maxRows int) Model func (m *Model) Margin(i ...int) func (m Model) Selection() string func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) func (m Model) View() string type Styles Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Choice ¶ type Choice struct { Name string Description string } type Model ¶ type Model struct { Width int // contains filtered or unexported fields } func New ¶ func New(choices []Choice, maxColumns, maxRows int) Model func (*Model) Margin ¶ func (m *Model) Margin(i ...int) func (Model) Selection ¶ func (m Model) Selection() string func (Model) Update ¶ func (m Model) Update(msg tea.Msg) (Model, tea.Cmd) func (Model) View ¶ func (m Model) View() string type Styles ¶ type Styles struct { Choice lipgloss.Style Selection lipgloss.Style } Source Files ¶ View all Source files keymap.go menu.go Click to show internal directories. Click to hide internal directories.