Files
twenty/packages/twenty-docs/l/tr/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
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: Toggle
icon: toggle-on
---
<Tabs>
<Tab title="Kullanım">
```jsx
import { Toggle } from "twenty-ui/input";
export const MyComponent = () => {
return (
<Toggle
value = {true}
onChange = {()=>console.log('onChange olayı')}
color="green"
toggleSize = "medium"
/>
);
};
```
</Tab>
<Tab title="Özellikler">
| Özellikler | Tür | Açıklama | Varsayılan |
| ---------- | --------- | ------------------------------------------------------------------------------------------------------- | ------------ |
| değer | boolean | Geçiş butonunun mevcut durumu | `yanlış` |
| onChange | fonksiyon | Açma/kapatma anahtarı durumu değiştiğinde tetiklenen geri çağırma işlevi | |
| renk | metin | Açma/kapatma anahtarının rengi | mavi renktir |
| toggleSize | metin | Geçiş butonunun boyutu, hem yüksekliği hem de genişliği etkiler. İki seçeneği vardır: `küçük` ve `orta` | orta |
</Tab>
</Tabs>