# Boolean schema

Learn how to define schemas for boolean values.

Boolean schemas describe true or false values such as on/off or yes/no switches.

![Boolean input](/assets/reference/content/schema/boolean.png)

The input for a boolean schema is a toggle button that has two labels, one for `true` and another for `false` values.

## Examples

Below are some examples of boolean schemas:

**Basic**

```json
{
  "type": "boolean"
}
```

**Labeled**

```json
{
  "type": "boolean",
  "label": {
    "true": "Visible",
    "false": "Hidden"
  }
}
```

## Properties

The following properties are available for boolean schemas:

- `type`: `string`

  The type of the schema. Always `boolean` for boolean schemas.

- `label`: `Labels` (optional) (default: "True" and "False")

  A map of labels for the boolean values.

  - `true`: `string`

    The label for representing true, up to 60 characters.

  - `false`: `string`

    The label for representing false, up to 60 characters.

- `default`: `boolean` (optional) (default: false)

  The value to be preselected on the user interface.
