OOratiq

Checkbox

Ready

Binary or indeterminate choice.

Requires radix-ui

Installation

$ npx @oratiq-js/ui add checkbox

Copies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.

Usage

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

States

unchecked

checked

indeterminate

disabled

Sizes

With a label

Wrap in a Field, or pair with Label directly.

Parent / child

An indeterminate parent reflects a partial selection.

View source on GitHub → components/ui/checkbox.tsx