Spinner
An animated loading indicator with ARIA live region support. Loading wraps Spinner in a full-height centered container.
Examples
import { Spinner } from "@g4rcez/components";
function DefaultSpinner() {
return <Spinner />;
}import { Spinner } from "@g4rcez/components";
function CustomSizes() {
return (
<div className="flex items-center gap-8">
<Spinner className="size-6" />
<Spinner className="size-10" />
<Spinner className="size-16" />
</div>
);
}import { Loading } from "@g4rcez/components";
function LoadingDemo() {
return (
<div className="h-40 border border-card-border rounded-lg">
<Loading />
</div>
);
}When to use Spinner
Use when
You need the documented Spinner interaction or presentation in a product workflow.
Avoid when
A native HTML element already provides the Spinner behavior you need.
Accessibility
Keep the Spinner labeled and use its documented keyboard interaction. The component preserves visible focus and communicates state without relying on color alone.
- Keep keyboard focus visible and follow the documented key commands.
- Provide an accessible name and connect descriptions or errors to the control.