8cadd00d34
Created by Github action --------- Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions <github-actions@twenty.com>
48 lines
2.0 KiB
Plaintext
48 lines
2.0 KiB
Plaintext
---
|
||
title: Kontrol Kutusu
|
||
image: /images/user-guide/tasks/tasks_header.png
|
||
---
|
||
|
||
<Frame>
|
||
<img src="/images/user-guide/tasks/tasks_header.png" alt="Header" />
|
||
</Frame>
|
||
|
||
Bir kullanıcı birden fazla seçeneği seçmek istediğinde kullanılır.
|
||
|
||
<Tabs>
|
||
<Tab title="Usage">
|
||
|
||
```jsx
|
||
import { Checkbox } from "twenty-ui/display";
|
||
|
||
export const MyComponent = () => {
|
||
return (
|
||
<Checkbox
|
||
checked={true}
|
||
indeterminate={false}
|
||
onChange={() => console.log("onChange function fired")}
|
||
onCheckedChange={() => console.log("onCheckedChange function fired")}
|
||
variant="primary"
|
||
size="small"
|
||
shape="squared"
|
||
/>
|
||
);
|
||
};
|
||
```
|
||
|
||
</Tab>
|
||
<Tab title="Props">
|
||
|
||
| Özellikler | Tür | Açıklama |
|
||
| --------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
||
| işaretli | boolean | Kontrol kutusunun işaretli olup olmadığını gösterir |
|
||
| belirsiz | boolean | Kontrol kutusunun belirsiz bir durumda olup olmadığını gösterir (ne işaretli ne de işaretsiz) |
|
||
| onChange | fonksiyon | The callback function you want to trigger when the checkbox state changes |
|
||
| onCheckedChange | fonksiyon | `checked` durumu değiştiğinde tetiklemek istediğiniz geri çağırma işlevi |
|
||
| variant | metin | Kutunun görsel stil varyantı. Seçenekler şunları içerir: `primary`, `secondary` ve `tertiary` |
|
||
| boyut | metin | Kontrol kutusunun boyutu. Has two options: `small` and `large` |
|
||
| şekil | metin | Kontrol kutusunun şekli. İki seçenek vardır: `squared` ve `rounded` |
|
||
|
||
</Tab>
|
||
</Tabs>
|