Bubble Tea is a powerful TUI framework for Go based on The Elm Architecture. Every program has a Model (state) and three methods: Init() (initial command), Update() (handle messages), View() (render UI as string).
| Component | Import | Init | Key Method |
| Spinner | bubbles/spinner | spinner.New() | .Tick in Init | | TextInput | bubbles/textinput | textinput.New() | .Focus(), .Value() | | TextArea | bubbles/textarea | textarea.New() | .Focus(), .Value() | | List | bubbles/list | list.New(items, delegate, w, h) | .SelectedItem() | | Table | bubbles/table | table.New(opts...) | .SelectedRow() |
Bubble Tea is a Go framework for building elegant terminal user interfaces (TUIs). Use when building CLI applications with interactive menus, forms, lists, tables, or any terminal UI. Based on The Elm Architecture (Model-View-Update). Key features: keyboard/mouse input, responsive layouts, async commands, Bubbles components (spinner, list, table, viewport, textinput, progress). Includes Lip Gloss for styling and Huh for forms. Source: quantmind-br/skills.