Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LutakkoSpinner = Spinner{ Frames: []string{"🌍", "🌎", "🌏"}, FPS: time.Second / 4, Description: "loading", } )
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Spinner Spinner Style lipgloss.Style // contains filtered or unexported fields }
Model contains the state for the spinner. Use New to create new models rather than using Model as a struct literal.
func (Model) Tick ¶
Tick is the command used to advance the spinner one frame. Use this command to effectively start the spinner.
type Option ¶
type Option func(*Model)
Option is used to set options in New. For example:
spinner := New(WithSpinner(Dot))
func WithSpinner ¶
WithSpinner is an option to set the spinner.
Click to show internal directories.
Click to hide internal directories.