spinner

package
v1.19.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int
const (
	ModeBoth Mode = iota
	ModeSpinnerOnly
)

type Spinner

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

func New

func New(mode Mode, dotsStyle lipgloss.Style) Spinner

func (Spinner) Init

func (s Spinner) Init() tea.Cmd

Init registers the spinner with the animation coordinator. If this is the first active animation, it starts the global tick.

func (Spinner) Reset

func (s Spinner) Reset() Spinner

func (Spinner) SetSize

func (s Spinner) SetSize(_, _ int) tea.Cmd

func (Spinner) Stop added in v1.19.6

func (s Spinner) Stop()

Stop unregisters the spinner from the animation coordinator. Call this when the spinner is no longer active/visible.

func (Spinner) Update

func (s Spinner) Update(message tea.Msg) (layout.Model, tea.Cmd)

func (Spinner) View

func (s Spinner) View() string

Jump to

Keyboard shortcuts

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