layout

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Focusable

type Focusable interface {
	Focus() tea.Cmd
	Blur() tea.Cmd
}

Focusable represents components that can receive focus

type Help

type Help interface {
	Bindings() []key.Binding
	Help() help.KeyMap
}

Help represents components that provide help information

type Model

type Model interface {
	Init() tea.Cmd
	Update(tea.Msg) (Model, tea.Cmd)
	View() string
	Sizeable
}

Model is the base interface for all TUI models

type Positionable added in v1.9.10

type Positionable interface {
	SetPosition(x, y int) tea.Cmd
}

type Sizeable

type Sizeable interface {
	SetSize(width, height int) tea.Cmd
}

Sizeable represents components that can be resized

Jump to

Keyboard shortcuts

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