# Checkbox [component-header:sl-checkbox] Checkboxes allow the user to toggle an option on or off. ```html preview Checkbox ``` ```jsx react import { SlCheckbox } from '@shoelace-style/shoelace/dist/react'; const App = () => ( Checkbox ); ``` ?> This component doesn't work with standard forms. Use [``](/components/form) instead. ## Examples ### Checked Use the `checked` attribute to activate the checkbox. ```html preview Checked ``` ```jsx react import { SlCheckbox } from '@shoelace-style/shoelace/dist/react'; const App = () => ( Checked ); ``` ### Indeterminate Use the `indeterminate` attribute to make the checkbox indeterminate. ```html preview Indeterminate ``` ```jsx react import { SlCheckbox } from '@shoelace-style/shoelace/dist/react'; const App = () => ( Indeterminate ); ``` ### Disabled Use the `disabled` attribute to disable the checkbox. ```html preview Disabled ``` ```jsx react import { SlCheckbox } from '@shoelace-style/shoelace/dist/react'; const App = () => ( Disabled ); ``` [component-metadata:sl-checkbox]