spinner

package module
v0.0.0-...-d9d1f2d Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Spinner

type Spinner struct {
	spinner.Model
	// contains filtered or unexported fields
}

Wraps bubbles/spinner.Spinner in a way that it implements tea.Spinner interface. It adds a title with the same implementation as huh/spinner.

func New

func New(opts ...spinner.Option) *Spinner

Creates a new Spinner tea.Model.

func (Spinner) Init

func (m Spinner) Init() tea.Cmd

func (*Spinner) Style

func (m *Spinner) Style(style lipgloss.Style) *Spinner

Style sets the style of the spinner.

func (*Spinner) Title

func (m *Spinner) Title(title string) *Spinner

Title sets the title of the spinner.

func (*Spinner) TitleStyle

func (m *Spinner) TitleStyle(style lipgloss.Style) *Spinner

TitleStyle sets the title style of the spinner.

func (Spinner) Update

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

func (Spinner) View

func (m Spinner) View() string

Jump to

Keyboard shortcuts

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