tui

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HighlightStyle = lipgloss.NewStyle().Foreground(lipgloss.Color("#8454fc"))
	ErrorStyle     = lipgloss.NewStyle().Foreground(lipgloss.Color("#ff4e94"))
	SuccessStyle   = lipgloss.NewStyle().Foreground(lipgloss.Color("#9bf3af"))
)

Functions

func NewConfirm

func NewConfirm(prompt string) bool

func NewScrollList

func NewScrollList(scrolls []*library.Scroll) (*library.Scroll, bool)

func NewSelector

func NewSelector(initial string) (string, bool)

func NewSpinner added in v0.6.2

func NewSpinner(label string, while func() (string, error)) (string, error)

Types

type SpinnerModel added in v0.6.2

type SpinnerModel struct {
	// contains filtered or unexported fields
}

func (SpinnerModel) Init added in v0.6.2

func (m SpinnerModel) Init() tea.Cmd

func (SpinnerModel) Update added in v0.6.2

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

func (SpinnerModel) View added in v0.6.2

func (m SpinnerModel) View() string

Jump to

Keyboard shortcuts

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