A native checkbox with label, description and indeterminate support.
import { Checkbox } from "@kivu-ui/react"On this page
import { Checkbox } from "@kivu-ui/react";They get an email when a task moves to Done.
import { Checkbox } from "@kivu-ui/react";
export default function Demo() {
return (
<div className="flex flex-col gap-4">
<Checkbox label="Email me a weekly summary" defaultChecked />
<Checkbox label="Notify clients on status change" description="They get an email when a task moves to Done." />
<Checkbox label="Select all tasks" indeterminate />
<Checkbox label="Disabled" disabled />
</div>
);
}Extends all <input type="checkbox"> attributes.
| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | - | Clickable label. |
description | ReactNode | - | Helper text under the label. |
indeterminate | boolean | false | Shows a dash. Useful for "select all". |
wrapperClassName | string | - | Class for the wrapper. |
Every component also accepts className and forwards its ref. Root CSS class: .kivu-check