Spinner

A customisable circular progress indicator with chase-ring and fill-ring animations. Supports lifecycle states (loading → success → error) via the useSpinnerLifecycle hook.

core/spinner

Installation

1 · Add registry to components.json

2 · Install component

Examples

Default

A spinner in its default loading state.

Sizes

Pass any pixel value to the size prop.

Lifecycle

Click Start to see the animated loading → completion transition.

API Reference

PropTypeDescription
size
numberDiameter of the spinner in pixels.
strokeWidth
numberWidth of the circular track and fill ring.
isLoading
booleanWhen true the chase animation runs.
fillDuration
numberDuration (ms) of the fill-ring draw animation.
resetDuration
numberDuration (ms) of the reset-to-empty animation.
resetStyle
"converge" | "diverge"Direction rings collapse when resetting.
fillEasing
stringCSS easing applied to the fill animation.
trackColor
stringOverride the track ring colour (defaults to border CSS variable).