Skip to content

Spinner

function Spinner(__namedParameters): Element;

Animated spinner indicator.

Uses braille dot characters by default, cycling at 80 ms per frame. Supply custom frames for different animation styles.

ParameterType
__namedParametersSpinnerProps

Element

<Spinner label="Loading..." style={{ color: "cyan" }} />
// Custom frames
<Spinner frames={["", "", "", ""]} intervalMs={120} />

PropertyTypeDescription
frames?string[]Animation frames. Defaults to braille dots.
intervalMs?numberInterval between frames in ms. Default 80.
label?stringOptional label text next to the spinner.
style?StyleStyle applied to the spinner character.