Files
twenty/packages/twenty-docs/l/ro/twenty-ui/input/toggle.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

40 lines
1.5 KiB
Plaintext

---
title: Comutare
image: /images/user-guide/table-views/table.png
---
<Frame>
<img src="/images/user-guide/table-views/table.png" alt="Header" />
</Frame>
<Tabs>
<Tab title="Usage">
```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="Props">
| Proprietăți | Tip | Descriere | Implicit |
| ----------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- | ---------------- |
| valoare | boolean | Starea actuală a comutatorului | `fals` |
| onChange | funcție | Callback function triggered when the toggle state changes | |
| culoare | șir | Culoarea comutatorului când este \ | culoare albastră |
| toggleSize | șir | Dimensiunea comutatorului, afectând atât înălțimea cât și greutatea. Are două opțiuni: `mic` și `mediu` | mediu |
</Tab>
</Tabs>