Skip to content
Nana UI

Feedback & Status

Spinner

An animated, accessible loading indicator.

View .md Download
npm install @nana-tec/ui-components
import "@nana-tec/ui-components/spinner";
<nana-spinner></nana-spinner>

Properties

PropertyAttributeTypeDefaultDescription
labellabelstring'Loading…'Accessible label announced to assistive technology
sizesizeSize'md'Diameter of the spinner
speedspeedSpinnerSpeed'normal'Animation speed
variantvariantSpinnerVariant'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
VariableDescription
--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