Spinner
An indicator that can be used to show a loading state.
Processing payment... $100.00
Installation
pnpm add @heyramzi/uiUsage
import { Spinner } from "@heyramzi/ui/shadcn/spinner";Keyboard and accessibility
- It's a status named "Loading". Pass aria-label to say what's loading.
- With reduced motion on, it stops spinning.
API reference
classstringrolestring- Default
"status" nameSVGAttributes<SVGSVGElement>colorSVGAttributes<SVGSVGElement>strokeSVGAttributes<SVGSVGElement>aria-labelstring- Default
"Loading" ...rest- Every prop of
SVGAttributes<SVGSVGElement>fromsvelte/elements
| Prop | Type | Default |
|---|---|---|
class | string | |
role | string | "status" |
name | SVGAttributes<SVGSVGElement> | |
color | SVGAttributes<SVGSVGElement> | |
stroke | SVGAttributes<SVGSVGElement> | |
aria-label | string | "Loading" |
...rest | Every prop of SVGAttributes<SVGSVGElement> from svelte/elements | |