Spinner

A loading spinner component with multiple variants.

Preview

Loading...

with variants

Loading...Loading...Loading...

Installation

Use the CLI to add this component to your project.

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

Usage

tsx
5 lines
1
2
3
4
5
import { Spinner } from "@/components/ui/spinner"

export default function MyComponent() {
  return <Spinner />
}

Variants

Default

Loading...

Dotted

Loading...

Bars

Pulse

Loading...

Gradient

Sizes

Loading...Loading...Loading...Loading...

Props

PropTypeDefaultDescription
variantstringdefault | dotted | bars | pulse | gradientThe visual style of the spinner
sizestringdefaultThe size of the spinner
loadingbooleantrueWhether the spinner is visible