spinner

package
v1.164.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 interface {
	layout.Model
	Reset() Spinner
	Stop()
	SetMessage(msg string)
	RawFrame() string
}

func New

func New(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style) Spinner

func NewThemed added in v1.164.0

func NewThemed(ar *animation.Runtime, mode Mode, dotsStyle func() lipgloss.Style) Spinner

func NewWithAnimation added in v1.118.0

func NewWithAnimation(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style, anim animation.Spinner) Spinner

NewWithAnimation creates a spinner that uses the provided duration-aware animation. If anim is empty, animation.Chat is used.

func NewWithFrames added in v1.118.0

func NewWithFrames(ar *animation.Runtime, mode Mode, dotsStyle lipgloss.Style, frames animation.Frames) Spinner

NewWithFrames creates a spinner that animates using the provided frame set. If frames is empty, animation.Chat is used.

Jump to

Keyboard shortcuts

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