Documentation ¶ Index ¶ type Model func New(opts ...func(Model) Model) Model func (m Model) Height() int func (m Model) ID() uuid.UUID func (m Model) Init() tea.Cmd func (m *Model) SetContent(content any) func (m *Model) SetWidth(width int) func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) func (m Model) Value() any func (m Model) View() string func (m Model) Width() int Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Model ¶ type Model struct { Style lipgloss.Style // contains filtered or unexported fields } Model displays the content with terminal style. Model is thread-safe after running Init(). func New ¶ added in v0.0.3 func New(opts ...func(Model) Model) Model func (Model) Height ¶ func (m Model) Height() int func (Model) ID ¶ func (m Model) ID() uuid.UUID func (Model) Init ¶ func (m Model) Init() tea.Cmd func (*Model) SetContent ¶ func (m *Model) SetContent(content any) func (*Model) SetWidth ¶ added in v0.0.3 func (m *Model) SetWidth(width int) func (Model) Update ¶ func (m Model) Update(tea.Msg) (tea.Model, tea.Cmd) func (Model) Value ¶ func (m Model) Value() any func (Model) View ¶ func (m Model) View() string func (Model) Width ¶ added in v0.0.3 func (m Model) Width() int Source Files ¶ View all Source files model.go Click to show internal directories. Click to hide internal directories.