Checkbox

Checkbox is a neobrutalist React component from Cruise UI. A native checkbox, restyled: square box, --primary when checked. Install it with npx shadcn@latest add @cruiseui/checkbox.

Install

Terminal

npx shadcn@latest add @cruiseui/checkbox

First time? Installation shows the one-off components.json setup (the @cruiseui registry) and how to turn the theme on.

Example

Corners

When to use it

When to use

Turning one option on or off in a form, or picking several from a list.

When not to

A setting that applies straight away (use a Switch). One choice from many (use a Radio group).

Props

CruiseCheckbox

PropTypeDefaultDescription
labelReactNode—Visible label; clicking it toggles the box (spec A5 Checkbox).
indeterminate?booleanfalse"Some of a group" state: an ink dash.

Also takes every native <input> attribute.

Accessibility

  • Native input inside its <label>, so the whole row is the 44px target.
  • Indeterminate is set with input.indeterminate = true.