Skip to content
shadcn.io
shadcn.io is not affiliated with official shadcn/ui

Shadcn Spinner for React and Tailwind

A spinner for displaying a loading state.

Generating image...
78%

Installation

bunx --bun shadcn@latest add https://kit.dev/r/spinner.json

Usage

import { Spinner } from "@/components/ui/spinner";
<Spinner />

Customization

Examples

Size

Use the size-* utility class to change the size of the spinner.

Badge

Add a spinner to a badge to indicate a loading state.

Input Group

Use a spinner in an input group addon to indicate a loading or validating state.

API Reference

Spinner

Use the Spinner component to display a loading indicator. It forwards SVG props and supports className for sizing and styling.

PropTypeDefault
classNamestring-
aria-labelstring"Loading"