Spinner
An SVG spinner in currentColor, sized like an icon (sm, md, lg). Decorative by default; with a label it becomes a role=status region. Pulses instead of spinning under reduced motion.
Example
Syncing
spinner-demo.tsxCopy code
Installation
Copy code
npm packages
class-variance-authority@0.7.1Usage
ImportCopy code
API reference
Spinner
Takes Omit<ComponentProps<"svg">, "children"> &.
Other exports
spinnerVariantstype SpinnerPropsAccessibility
- Decorative by default; pass label and it becomes role=status with a screen-reader-only label.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.