Components › Forms

Checkbox

A binary or indeterminate choice, for lists where many items can be on.

Installation

npx plankui@latest add checkbox

Usage

import { Checkbox } from "@/components/ui/checkbox";

<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms</Label>

API reference

PropTypeDefaultDescription
checkedboolean | "indeterminate"Controlled state.
onCheckedChange(checked) => voidCalled on toggle.
disabledbooleanfalseBlocks interaction.

View the source on GitHub