> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzn.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Checkbox

> Toggle selection box

# Checkbox

The `Checkbox` component allows users to toggle a single option on or off.

## Usage

```jsx theme={null}
<Checkbox label="I agree to terms" name="terms" />
```

## Props

<ResponseField name="label" type="string">
  Text displayed next to the checkbox.
</ResponseField>

<ResponseField name="checked" type="boolean">
  Checked state (controlled).
</ResponseField>

<ResponseField name="defaultChecked" type="boolean">
  Initial checked state (uncontrolled).
</ResponseField>

<ResponseField name="name" type="string">
  Field name.
</ResponseField>

<ResponseField name="disabled" type="boolean">
  Whether checkbox is disabled.
</ResponseField>

## Examples

### Task Item

```jsx theme={null}
<Row>
  <Checkbox checked={task.completed} />
  <Text value={task.title} />
</Row>
```
