Boolean toggle with label and description support.
import { Checkbox } from "@/components/ui";<Checkbox label="Accept terms and conditions" />Add helper text below the label
<Checkbox label="Email notifications" description="Receive email updates about your account activity"/>Manage checkbox state
const [checked, setChecked] = useState(false);return ( <Checkbox label="Subscribe to newsletter" checked={checked} onChange={(e) => setChecked(e.target.checked)} />);Show partial selection
<div className="space-y-2"> <Checkbox label="Select all" indeterminate={someSelected && !allSelected} checked={allSelected} onChange={handleSelectAll} /> <div className="ml-6 space-y-1"> <Checkbox label="Option 1" checked={selected.option1} /> <Checkbox label="Option 2" checked={selected.option2} /> <Checkbox label="Option 3" checked={selected.option3} /> </div></div>Prevent user interaction
<div className="space-y-2"> <Checkbox label="Unchecked disabled" disabled /> <Checkbox label="Checked disabled" checked disabled /></div>Configure your app with the features you need and download production-ready code.
Start Configuring