selection

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 2 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 {
	FocusStyle   lipgloss.Style
	BlurredStyle lipgloss.Style
	// contains filtered or unexported fields
}

Model is the model for the selection component

func New

func New(items []string) Model

New creates a new selection component

func (*Model) Blur

func (m *Model) Blur()

Blur blurs the selection component

func (*Model) Focus

func (m *Model) Focus() tea.Cmd

Focus focuses the selection component

func (*Model) Focused

func (m *Model) Focused() bool

Focused returns true if the selection component is focused

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the selection component

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

Update updates the selection component

func (*Model) Value

func (m *Model) Value() string

Value returns the value of the selection component

func (Model) View

func (m Model) View() string

View renders the selection component

Jump to

Keyboard shortcuts

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