Installation
pnpm dlx shadcn-svelte@latest add https://coss-sv.vercel.app/r/spinner.jsonUsage
<script lang="ts">
import { Spinner } from "$lib/components/ui/spinner/index.js";
</script>
<Spinner />API Reference
Spinner
Use the Spinner component to display a loading indicator. Native SVG attributes pass to the element.
| Prop | Type | Default |
|---|---|---|
class | string | |
size | number \| string | 24 |
strokeWidth | number \| string | 2 |
absoluteStrokeWidth | boolean | false |