--- title: Checkbox sidebar_position: 4 sidebar_custom_props: icon: TbCheckbox --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import { SandpackEditor} from '@site/src/ui/SandpackEditor' import checkboxCode from '!!raw-loader!@site/src/ui/input/components/checkboxCode.js' Used when a user needs to select multiple values from several options.
Props Type Description Default
checked boolean Indicates whether the checkbox is checked
indeterminate boolean Indicates whether the checkbox is in an indeterminate state (neither checked nor unchecked)
onChange function The callback function you want to trigger when the checkbox state changes
onCheckedChange function The callback function you want to trigger when the `checked` state changes
variant string The visual style variant of the box. Options include: `primary`, `secondary`, and `tertiary` primary
size string The size of the checkbox. Has two options: `small` and `large` small
shape string The shape of the checkbox. Has two options: `squared` and `rounded` squared