Checkbox

A checkbox form input for multi-choice user selection

<Checkbox>

import { Checkbox } from '@strum/react';
name
type
default
checked
CheckedState
-
error
string
-
id*
Required
string
-
label*
Required
string
-
onCheckedChange
(checked: CheckedState) => void
-
ref
Ref<HTMLButtonElement>
-

Disabled state
Link to this heading

Controlled input
Link to this heading

To control your checkbox component with React, simply include a checked boolean prop and a onCheckedChange function prop.