Files
twenty/packages/twenty-docs/l/cs/twenty-ui/input/toggle.mdx
T
Félix Malfait 3dd858c91e i18n - docs translations (#16774)
Created by Github action

Pulls the latest documentation translations from Crowdin for all
supported languages:
- French (fr)
- Arabic (ar)  
- Czech (cs)
- German (de)
- Spanish (es)
- Italian (it)
- Japanese (ja)
- Korean (ko)
- Portuguese (pt)
- Romanian (ro)
- Russian (ru)
- Turkish (tr)
- Chinese (zh-CN)

---------

Co-authored-by: github-actions <github-actions@twenty.com>
2025-12-23 14:26:11 +01:00

37 lines
1.5 KiB
Plaintext

---
title: Přepínač
image: /images/user-guide/table-views/table.png
---
<Frame>
<img src="/images/user-guide/table-views/table.png" alt="Hlavička" />
</Frame>
<Tabs>
<Tab title="Použití">
```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="Vlastnosti">
| Vlastnosti | Typ | Popis | Výchozí |
| ----------------- | ------------------ | --------------------------------------------------------------------------------------------- | ------------ |
| hodnota | booleovská hodnota | Aktuální stav přepínače | `nepravdivé` |
| onChange | funkce | Callback funkce spuštěná při změně stavu přepínače | |
| barva | řetězec | Color of the toggle when it\ | modré barvy |
| velikostPřepínače | řetězec | Velikost přepínače, která ovlivňuje jak výšku, tak šířku. Má dvě možnosti: `malé` a `střední` | střední |
</Tab>
</Tabs>