Checkbox

Stable

Binary selection input with brutal styling and smooth animations.

Import

import { Checkbox } from '@brutal-ui/react';

Basic Usage

const [checked, setChecked] = useState(false);

<Checkbox
  checked={checked}
  onChange={(e) => setChecked(e.target.checked)}
  label='Accept terms and conditions'
/>

Without Label

<Checkbox checked={true} onChange={() => {}} />

Disabled State

Props

PropTypeDefaultDescription
checkedbooleanfalseControlled checked state
onChangefunction-Change event handler
labelstring-Label text
disabledbooleanfalseDisable checkbox