Spinner
Loading indicator in ring, dots, bars and orbit styles, four sizes, colored via currentColor.
About Spinner
Loading indicator in ring, dots, bars and orbit styles, four sizes, colored via currentColor.
Spinner is a free primitive component for React, built on shadcn/ui and Tailwind CSS with motion animations that respect reduced-motion settings. It ships as 84 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- spinner
- loader
- loading
- progress
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/spinnerDependencies installed automatically: motion.
Uses: use-reduced-motion, utils.
Usage
import Spinner from "@/components/ui/spinner"
export default function Page() {
return <Spinner />
}