Spinner
An indicator that can be used to show a loading state.
Note: The Spinner component is a fully custom implementation using in-line svg with no external dependencies.
Installation
Copy the following code into your app directory.
Command
Command
Manual
Manual
uv
Anatomy
Use the following composition to build a Spinner component.
Button
Add a spinner to a button to indicate a loading state. Place it before the label for a start position.
Badge
Add a spinner to a badge to indicate a loading or syncing state.
SyncingUpdatingProcessing
Marker
Combine Spinner with Marker and the shimmer utility for animated streaming status indicators. Set role="status" so assistive technology announces the update.
Thinking…
Generating response…
Processing