Files
twenty/packages/twenty-docs/l/tr/twenty-ui/input/radio.mdx
T
github-actions[bot] 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

114 lines
3.7 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
icon: circle-dot
---
<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>