# Checkbox

Checkboxes allow the user to select one or more items from a set.

```jsx
import { Checkbox } from '../components'

<Checkbox 
  status={'checked'}
  onPress={(state) => !state}
  color={colors.primary}
/>
```

CheckBoxes can be checked or disabled.

```jsx
import { Checkbox } from '../components'

<Checkbox 
  status={'unchecked'}
  onPress={(state) => !state}
  color={colors.primary}
  disabled
/>
```

## Properties

| Name     | Type                       | Description                                    |
| -------- | -------------------------- | ---------------------------------------------- |
| status   | `string`                   | Can be `checked`, `unchecked`                  |
| onPress  | `(status: string) => void` | Called when checkbox should switch it's value. |
| color    | `string`                   | Changes a color of the checkbox.               |
| disabled | `bool`                     | Makes the checkbox disabled.                   |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reactnativestarter.com/components/checkbox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
