Checkbox

A binary control for selections, filters, and opt-in settings.

The Checkbox Component

Basic Usage

Code Snippet

<script lang="ts">		import { Checkbox } from '$lib/components'; 		let checked = $state(false);	</script> 	<Checkbox bind:checked={checked} label="Email me weekly updates" />

Examples

States

Pair helper and error copy with disabled and unavailable states.

This preference is applied to every new project.

Only workspace owners can edit this setting.

You need to confirm this before continuing.