Spinner

Displays an animation to indicate a loading or processing state.

lucide-react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes.com/r/spinner.json

Examples


Custom Spinner

Size

Adjust the spinner’s size using the size-* utility class.

Color

Adjust the spinner’s color using the text-* utility class.

Badge

Empty


API Reference

Spinner

PropTypeDefault
classNamestring-