ComponentProduct
Spinner
Loading indicator that uses the surrounding text color.
npx context-ds add spinnerUsage
Use it for
Buttons and inline waits under a second or two.
Avoid
- Full-page spinners
Dependencies: lucide-react
Example
examples/spinner.tsx
Source
components/ui/spinner.tsx
Reference: src/components/dashboard/PausePlanModal.tsx (Loader2 animate-spin).