Registry /
cli / charmbracelet-bubbletea
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
tea
✓ github.com/charmbracelet/bubbletea
Minimal Bubble Tea program
package main
import (
"fmt"
"os"
tea "github.com/charmbracelet/bubbletea"
)
type model struct{}
func (m model) Init() tea.Cmd { return nil }
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) { return m, nil }
func (m model) View() string { return "Hello, TUI!" }
func main() {
p := tea.NewProgram(model{})
if _, err := p.Run(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.3.10latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.