Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Spinner

An indicator that can be used to show a loading state.

Processing payment... $100.00

Installation

pnpm add @heyramzi/ui

Usage

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

class string
role string
Default "status"
name SVGAttributes<SVGSVGElement>
color SVGAttributes<SVGSVGElement>
stroke SVGAttributes<SVGSVGElement>
aria-label string
Default "Loading"
...rest
Every prop of SVGAttributes<SVGSVGElement> from svelte/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