All components
Spinner
A current-color loading indicator sized from inherit up to xl.
Sizes
xs
sm
md
lg
xl
Install
zsh — spinner
1bunx stylexblocks add spinnerUsage — Base UI
spinner.tsx
123456789import { Spinner } from "#components/ui/base-ui/spinner.tsx";
export function Example() { return ( {/* the size prop resolves through the StyleX recipe (exposed as a data-size attribute); the spinner inherits currentColor */} <Spinner size="md" aria-label="Loading" /> );}