Files
twenty/packages/twenty-docs/l/de/twenty-ui/input/toggle.mdx
T
cd73088be6 i18n - docs translations (#19925)
Created by Github action

Co-authored-by: github-actions <github-actions@twenty.com>
2026-04-21 10:57:27 +02:00

39 lines
1.3 KiB
Plaintext

---
title: Umschalten
icon: toggle-on
---
<Tabs>
<Tab title="Verwendung">
```jsx
import { Toggle } from "twenty-ui/input";
export const MyComponent = () => {
return (
<Toggle
value = {true}
onChange = {()=>console.log('On Change event')}
color="green"
toggleSize = "medium"
/>
);
};
```
</Tab>
<Tab title="Eigenschaften">
| Eigenschaften | Typ | Beschreibung | Standard |
| ------------- | ------------ | -------------------------------------------------------------------------------------------------------- | ------------ |
| wert | boolesch | Der aktuelle Zustand des Umschalters | `falsch` |
| onChange | Funktion | Callback-Funktion, die ausgelöst wird, wenn sich der Umschaltzustand ändert | |
| farbe | Zeichenkette | Farbe des Umschalters, wenn er | s blue color |
| ToggleSize | Zeichenkette | Größe des Umschalters, beeinflusst sowohl Höhe als auch Gewicht. Hat zwei Optionen: `klein` und `mittel` | mittel |
</Tab>
</Tabs>