6.8k

A control that allows the user to toggle between checked and not checked.

Docs API Reference

Installation

pnpm dlx shadcn-svelte@latest add checkbox

Usage

<script lang="ts">
  import { Checkbox } from "$lib/components/ui/checkbox/index.js";
</script>
 
<Checkbox />

Examples

Form