# Checkbox A control that allows the user to toggle between checked and not checked. ## Use cases - **Suitable**: A single binary choice (accepting terms, a subscription toggle) - **Suitable**: Checkable items in a form - **Not suitable**: Mutually exclusive choices (use `radio-group`) ## Usage ```tsx import { Checkbox } from "@lcui/react" ``` ```tsx ``` Use `checked` to control the checked state; a `change` event is emitted when it changes. ## Examples ### Description Pair `FieldContent` and `FieldDescription` to add helper text to the option. ### Group Combine several `Field`s to build a checkbox list. ### Indeterminate `indeterminate` expresses the "some children are selected" visual state, showing a minus icon. ### Disabled ## Caveats :::caution **Indeterminate is a state, not a default.** The indeterminate state (`indeterminate="true"`) expresses the "some children are selected" visual state (for example, a parent checkbox when only some children are checked). Clicking an indeterminate checkbox transitions it to the checked state. ::: ## API Reference