Docs
Checkbox

Checkbox

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

Loading...

Installation

	npx shadcn-svelte@latest add checkbox

Usage

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

Examples

With Text

Loading...

Disabled

Loading...

Form

When using the checkbox within a form, you'll want to use the <Form.Checkbox /> component instead. This is a wrapper around your existing Checkbox component with some additional functionality for forms.

Loading...