Spinner

The Spinner component expands the shadcn spinner component with additional variants.

Installation

npx love-ui@latest add spinner

Usage

import { Spinner } from "@/components/spinner"
<Spinner variant="throbber" size="lg" />

You can replace the shadcn spinner with this component to get the additional variants.

import { Spinner } from "@/components/ui/spinner"; // [!code --]
import { Spinner } from "@/components/love-ui/spinner"; // [!code ++]

Features

  • Multiple size variants (sm, default, lg)
  • Multiple variants (throbber, pinwheel, circle-filled, etc.)
  • Default variant is the shadcn spinner
  • Customizable colors and styles
  • Accessible loading indicator

Examples

Default

Variants

Customization