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

98 lines
3.9 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: Radyo
image: /images/user-guide/create-workspace/workspace-cover.png
---
<Frame>
<img src="/images/user-guide/create-workspace/workspace-cover.png" alt="Başlık" />
</Frame>
Kullanıcıların bir dizi seçenekte yalnızca bir seçeneği seçebildiği durumlarda kullanılır.
<Tabs>
<Tab title="Kullanım">
```jsx
import { Radio } from "twenty-ui/display";
export const MyComponent = () => {
const handleRadioChange = (event) => {
console.log("Radio button changed:", event.target.checked);
};
const handleCheckedChange = (checked) => {
console.log("Checked state changed:", checked);
};
return (
<Radio
checked={true}
value="Option 1"
onChange={handleRadioChange}
onCheckedChange={handleCheckedChange}
size="large"
disabled={false}
labelPosition="right"
/>
);
};
```
</Tab>
<Tab title="Özellikler">
| Özellikler | Tür | Açıklama |
| --------------- | ----------------------- | ------------------------------------------------------------------------------- |
| stil | `React.CSS` özellikleri | Bileşen için ek satır içi stiller |
| sınıfAdı | dize | Ek stil tanımlamaları için isteğe bağlı CSS sınıfı |
| işaretli | boolean | Indicates whether the radio button is checked |
| değer | dize | Radyo butonuyla ilişkili etiket veya metin |
| onChange | fonksiyon | Seçili radyo butonu değiştirildiğinde çağrılan fonksiyon |
| onCheckedChange | fonksiyon | `checked` durumu değiştiğinde çağrılan fonksiyon |
| boyut | dize | Radyo butonunun boyutu. Seçenekler: `büyük` ve `küçük` |
| devre dışı | boolean | Eğer `true` ise, radyo butonu devre dışı bırakılır ve tıklanamaz |
| etiketPozisyonu | dize | Etiket metninin radyo butonuna göre konumu. İki seçeneği vardır: `sol` ve `sağ` |
</Tab>
</Tabs>
## Radyo Grubu
İlişkili radyo düğmelerini birlikte gruplar.
<Tabs>
<Tab title="Kullanım">
```jsx
import React, { useState } from "react";
import { Radio, RadioGroup } from "twenty-ui/display";
export const MyComponent = () => {
const [selectedValue, setSelectedValue] = useState("Option 1");
const handleChange = (event) => {
setSelectedValue(event.target.value);
};
return (
<RadioGroup value={selectedValue} onChange={handleChange}>
<Radio value="Option 1" />
<Radio value="Option 2" />
<Radio value="Option 3" />
</RadioGroup>
);
};
```
</Tab>
<Tab title="Özellikler">
| Özellikler | Tür | Açıklama |
| ------------- | ----------------- | ----------------------------------------------------------------------------------- |
| değer | dize | Şu anda seçili radyo butonunun değeri |
| onChange | fonksiyon | Radyo butonu değiştirildiğinde tetiklenen geri çağırım fonksiyonu |
| onValueChange | fonksiyon | Grup içindeki seçili değer değiştiğinde tetiklenen geri çağırım fonksiyonu. |
| çocuklar | `React.ReactNode` | Radyo Grubu'na çocuklar olarak Radyo gibi React bileşenlerini iletmenize izin verir |
</Tab>
</Tabs>