# UI: Checkbox

> Eine Checkbox mit ihrer Beschriftung.

Source: https://pithyx.org/de/docs/reference/sdk/ui/checkbox/
Markdown: https://pithyx.org/de/docs/reference/sdk/ui/checkbox.md

Eine Checkbox mit ihrer Beschriftung. Importiere die Token-Datei einmal (`@pithyx/ui/tokens.css`) und umschließe die App mit `UiProvider`; siehe [@pithyx/ui](https://pithyx.org/de/docs/sdk/ui/).

Beim Build aus den TSDoc-Kommentaren von @pithyx/ui 1.0.0-rc.9 erzeugt; der Text unter den Überschriften ist der Kommentar im Quelltext und bleibt Englisch.

## Schnittstellen

### CheckboxProps

The props of [Checkbox](#checkbox): React Aria's checkbox field props plus the label.

#### Erweitert

- `Omit`\<`CheckboxFieldProps`, `"className"` \| `"children"`\>

#### Eigenschaften

##### children

```ts
children: ReactNode;
```

The label, also the accessible name.

## Funktionen

### Checkbox()

```ts
function Checkbox(props): Element;
```

A checkbox with its label.

#### Parameter

| Parameter | Typ                               | Beschreibung                                                                               |
| --------- | --------------------------------- | ------------------------------------------------------------------------------------------ |
| `props`   | [`CheckboxProps`](#checkboxprops) | React Aria's checkbox field props (`isSelected`, `onChange`, `isDisabled`) plus the label. |

#### Rückgabewert

`Element`

The checkbox with its label.
