Skip to main content

Checkbox

Import

import { Checkbox } from '@sparrowengg/twigs-react';

Usage

Result
Loading...
<Checkbox id="accept-terms" size="md"> 
  Accept terms and conditions
</Checkbox>

Props

PropertyDescriptionTypeDefault
checkedstate of the checkboxboolean,"indeterminate"false
defaultCheckedUncontrolled default state of checkboxboolean
disabledbooleanfalse
sizeSize of the checkboxsm mdsm
onChangeCallback function when checkbox is clickedfunction