Spelte

Open Github

Spinner

A loading spinner component with customizable size and color.

Installation

pnpm dlx shadcn-svelte@latest add https://spelte.dev/r/spinner.json

Examples

Size

Speed

Usage

<script>
	import Spinner from '$registry/spelte/spinner.svelte';
</script>
 
<Spinner size="md" />

Props

PropTypeDefaultDescription
size"sm" | "default" | "md" | "lg""md"Size variant of the spinner
speed"slow" | "normal" | "fast""normal"Animation speed
classstringAdditional CSS classes