An animated loading indicator. Use it to signal that an async operation is in progress.

import Spinner from "@radui/ui/Spinner"
Example
React
"use client" import Spinner from "@radui/ui/Spinner" const SpinnerExample = () => { return ( <div className="flex items-center gap-6"> <Spinner size="sm" /> <Spinner size="md" /> <Spinner size="lg" /> </div> ) } export default SpinnerExample
  • An animated indicator with a size prop that follows the theme scale
  • Keeps turning under prefers-reduced-motion, because it tells people something is happening
  • Give it a label with aria-label, or hide it with aria-hidden next to a text status

Import all parts of the component and piece them together.

React
import Spinner from "@radui/ui/Spinner" export default () => { return <Spinner size="md" /> }

An animated loading indicator.

PropTypeDefault
size
string""
customRootClass
string""
className
string""
aria-label
string"Loading"
aria-labelledby
string—
aria-hidden
booleanfalse