Skip to content
Nana UI

Spinner

View .md Download

An animated, accessible loading indicator.

Terminal window
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/spinner";
<nana-spinner></nana-spinner>

Properties

PropertyAttributeTypeDefaultDescription
labelstring'Loading…'Accessible label announced to assistive technology
sizeSize'md'Diameter of the spinner
speedSpinnerSpeed'normal'Animation speed
variantSpinnerVariant'primary'Colour variant

CSS parts

PartDescription
::part(spinner)The animated SVG mark

CSS custom properties

PropertyDescription
--nana-spinner-colorOverride the spinner color
--nana-spinner-durationOverride the rotation duration
VariableDefaultDescription
--nana-spinner-colorOverride the spinner color
--nana-spinner-durationOverride the rotation duration
PartDescription
spinnerThe animated SVG mark
Explore Spinner interactively Every state, prop, and edge case — with live controls — in Storybook.
View in Storybook