loader

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package loader provides an animated loading indicator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is a loading indicator with an animated spinner.

func New

func New(theme styles.Theme, message string) *Model

New creates a new loader with the given message.

func (*Model) Init

func (m *Model) Init() tea.Cmd

Init starts the spinner animation.

func (*Model) SetMessage

func (m *Model) SetMessage(message string)

SetMessage updates the loading message.

func (*Model) Update

func (m *Model) Update(msg tea.Msg) tea.Cmd

Update handles spinner tick messages.

func (*Model) View

func (m *Model) View() string

View renders the loading indicator.

Jump to

Keyboard shortcuts

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