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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
__namedParameters | SpinnerProps |
Returns
Section titled “Returns”Element
Examples
Section titled “Examples”<Spinner label="Loading..." style={{ color: "cyan" }} />// Custom frames<Spinner frames={["◐", "◓", "◑", "◒"]} intervalMs={120} />Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
frames? | string[] | Animation frames. Defaults to braille dots. |
intervalMs? | number | Interval between frames in ms. Default 80. |
label? | string | Optional label text next to the spinner. |
style? | Style | Style applied to the spinner character. |