Versions in this module Expand all Collapse all v0 v0.1.0 Feb 6, 2023 Changes in this version + type Button struct + func NewButton(text string, cb func() tea.Cmd) *Button + func (b *Button) Blur() + func (b *Button) Focus() tea.Cmd + func (b *Button) Update(msg tea.Msg) (Field, bool, tea.Cmd) + func (b *Button) View() string + type Field interface + Blur func() + Focus func() tea.Cmd + Update func(tea.Msg) (Field, bool, tea.Cmd) + View func() string + func NewTextField(prompt string) Field + type Form struct + Debug bool + Fields []Field + func New(fields ...Field) Form + func (f Form) Init() tea.Cmd + func (f Form) Update(msg tea.Msg) (Form, tea.Cmd) + func (f Form) View() string + type Select struct + Options []table.Row + Prompt string + func NewSelect(promt string, columns []string, options ...table.Row) *Select + func (s *Select) Blur() + func (s *Select) Focus() tea.Cmd + func (s *Select) Update(msg tea.Msg) (Field, bool, tea.Cmd) + func (s *Select) View() string + type TextField struct + func (t *TextField) Blur() + func (t *TextField) Focus() tea.Cmd + func (t *TextField) Update(msg tea.Msg) (Field, bool, tea.Cmd)