# Checkbox Checkbox is a type of control component that allows user to select one or more options from a set. They can also be used alone to switch between on and off. ## Import ```tsx import { Checkbox } from '@coinbase/cds-web/controls/Checkbox' ``` ## Examples ### Basic Usage Checkbox UI and state management are separated so that you can swap in any form or state code you like. ```jsx live function BasicCheckbox() { const [isChecked, setIsChecked] = useState(false); return ( setIsChecked(e.target.checked)} checked={isChecked} > Subscribe to newsletter ); } ``` ### Custom Layout If you don't want to use the default label or layout style, you can just not provide `children` to the `Checkbox` component. However, you should think about wrapping the custom label and `Checkbox` in a `