text

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL