Files
twenty/packages/twenty-docs/l/de/twenty-ui/input/checkbox.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

48 lines
2.1 KiB
Plaintext

---
title: Kontrollkästchen
image: /images/user-guide/tasks/tasks_header.png
---
<Frame>
<img src="/images/user-guide/tasks/tasks_header.png" alt="Header" />
</Frame>
Wird verwendet, wenn ein Benutzer mehrere Werte aus mehreren Optionen auswählen muss.
<Tabs>
<Tab title="Usage">
```jsx
import { Checkbox } from "twenty-ui/display";
export const MyComponent = () => {
return (
<Checkbox
checked={true}
indeterminate={false}
onChange={() => console.log("onChange function fired")}
onCheckedChange={() => console.log("onCheckedChange function fired")}
variant="primary"
size="small"
shape="squared"
/>
);
};
```
</Tab>
<Tab title="Props">
| Props | Typ | Beschreibung |
| ---------------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------- |
| markiert | boolesch | Gibt an, ob das Kontrollkästchen markiert ist |
| unbestimmt | boolesch | Gibt an, ob sich das Kontrollkästchen in einem unbestimmten Zustand befindet (weder markiert noch unmarkiert) |
| onChange | function | Die Rückruffunktion, die ausgelöst werden soll, wenn sich der Zustand des Kontrollkästchens ändert |
| beiMarkierungsÄnderung | Funktion | Die Rückruffunktion, die ausgelöst werden soll, wenn sich der `markiert` Zustand ändert |
| Variante | Zeichenkette | Der visuelle Stil der Box. Optionen umfassen: `primary`, `secondary` und `tertiary` |
| größe | Zeichenkette | Die Größe des Kontrollkästchens. Has two options: `small` and `large` |
| Form | Zeichenkette | Die Form des Kontrollkästchens. Hat zwei Optionen: `squared` und `rounded` |
</Tab>
</Tabs>