Checkbox
The native checkbox sits inside a label, so clicking the text toggles it. The primary variant draws a bordered row that tints when checked.
Installation
Copy the command below and run it in your terminal.
Usage
Bind checked, or pass onCheckedChange to react to changes. description renders only when label is set.
Examples
Notification preferences
Email preferences
Disabled by policy
Access control
Controlled state
On
On
Off
Anatomy
Checkbox - Selects or clears a boolean value.
<script lang="ts"> import { Checkbox } from '@sivir-ui/svelte/components/checkbox'; </script> <Checkbox label="Accept terms of service" />