component.go
 1package common
 2
 3import (
 4	"github.com/charmbracelet/bubbles/help"
 5	tea "github.com/charmbracelet/bubbletea"
 6)
 7
 8// Component represents a Bubble Tea model that implements a SetSize function.
 9type Component interface {
10	tea.Model
11	SetSize(width, height int)
12}
13
14// Page represents a component that implements help.KeyMap.
15type Page interface {
16	Component
17	help.KeyMap
18}