Component librarySpinner
Spinner
FreeA compact loading indicator with an optional visible label.
npx shadcn@latest add https://tidalui.com/r/spinner.jsonInstallation
Terminal
Import components/ui/tidal.css, components/ui/spinner.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Provide a required label for the polite status mode, or decorative=true to omit announcements inside an already labelled busy control. Optional labelVisible, size (sm=16px, md=24px default, lg=36px), paused (animation only), native span attributes/ref/className/style. A whitespace-only label falls back to Loading. Reduced motion uses a static dotted ring. This component does not own task state, timers, requests, navigation or storage.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.