Components / Checkbox

Forms

Checkbox

stable

Binary choice with indeterminate state and grouped variants.

since v1.01.6 kB gzip

Preview

Installation

npx @strata/cli add checkbox

Usage

import { Checkbox } from "@/components/strata";

<Checkbox defaultSelected description="We'll email you once a week.">
  Product updates
</Checkbox>

Props

PropTypeDefault
isSelected

Controlled checked state.

boolean—
isIndeterminate

Shows a dash for partial selection.

booleanfalse
description

Secondary text under the label.

ReactNode—
isDisabled

Prevents interaction and dims the control.

booleanfalse

Accessibility

Was this page helpful?

Documented since v1.0 · components/checkbox.mdx