spinner

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: 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
	ModeMessageOnly
)

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

func (*Spinner) Render

func (s *Spinner) Render() string

func (Spinner) Reset added in v1.16.0

func (s Spinner) Reset() Spinner

func (*Spinner) SetMessage

func (s *Spinner) SetMessage(message string)

func (Spinner) SetSize

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

func (Spinner) Tick

func (s Spinner) Tick() tea.Cmd

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