Checkbox

A control that toggles between checked, unchecked, and indeterminate.

Installation

npx lily-svelte@latest add checkbox

Usage

<script lang="ts">
	import { Checkbox } from '$lib/components/ui/checkbox';
	import { Label } from '$lib/components/ui/label';
 
	let checked = $state(false);
</script>
 
<div class="flex items-center gap-3">
	<Checkbox id="terms" bind:checked />
	<Label for="terms">Accept terms and conditions</Label>
</div>

Built by levish. The source code is available on GitHub.

Quiet by design.