Spelte

Open Github

Animated Checkbox

Animated checkbox with spring transitions and strike-through text effect.

Installation

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

Usage

<script>
	import AnimatedCheckbox from '$registry/spelte/animated-checkbox.svelte';
</script>
 
<AnimatedCheckbox title="Deploy preview" />

Props

PropTypeDefaultDescription
titlestring"Implement Checkbox"The label shown next to the animated check indicator.
defaultCheckedbooleanfalseInitial checked state for uncontrolled usage.
onCheckedChange((checked: boolean) => void) | undefinedundefinedCallback fired whenever the checkbox toggles.
classstringundefinedCustom classes merged onto the clickable button root.