Skip to main content

Module spinner

Module spinner 

Source
Expand description

Spinner component for loading indicators.

This module provides animated spinners with multiple preset styles.

§Example

use bubbles::spinner::{Spinner, SpinnerModel, spinners};

// Create a spinner with the default style
let spinner = SpinnerModel::new();

// Or with a specific style
let spinner = SpinnerModel::with_spinner(spinners::dot());

// Get the tick command to start animation
let tick_msg = spinner.tick();

Modules§

spinners
Predefined spinner styles.

Structs§

Spinner
A spinner animation definition.
SpinnerModel
The spinner model.
TickMsg
Message indicating that the spinner should advance to the next frame.