# 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 works with standard `
` elements. Please refer to the section on [form controls](/getting-started/form-controls) to learn more about form submission and client-side validation. ## 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]