001c2097a3
Created by Github action <!-- mintlify-editor-comments:start --> Mintlify --- 0 threads from 0 users in Mintlify - No unresolved comments <!-- mintlify-editor-comments:end --> <!-- mintlify-comment--> <a href="https://dashboard.mintlify.com/twenty/twenty/editor/i18n-docs?source=pr_comment" target="_blank" rel="noopener noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg"><img src="https://d3gk2c5xim1je2.cloudfront.net/assets/open-mintlify-editor-light.svg" alt="Open in Mintlify Editor"></picture></a> <!-- /mintlify-comment --> Co-authored-by: github-actions <github-actions@twenty.com>
51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
---
|
||
title: Kontrol Kutusu
|
||
image: /images/user-guide/tasks/tasks_header.png
|
||
---
|
||
|
||
<Frame>
|
||
<img src="/images/user-guide/tasks/tasks_header.png" alt="Başlık" />
|
||
</Frame>
|
||
|
||
Bir kullanıcı birden fazla seçeneği seçmek istediğinde kullanılır.
|
||
|
||
<Tabs>
|
||
<Tab title="Kullanım">
|
||
|
||
```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="Özellikler">
|
||
|
||
|
||
| Ö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 | function | Onay kutusunun durumu değiştiğinde tetiklemek istediğiniz geri çağırma işlevi |
|
||
| onCheckedChange | function | `checked` durumu değiştiğinde tetiklemek istediğiniz geri çağırma işlevi |
|
||
| varyant | metin | Kutunun görsel stil varyantı. Seçenekler şunları içerir: `primary`, `secondary` ve `tertiary` |
|
||
| boyut | string | Kontrol kutusunun boyutu. İki seçenek vardır: `small` ve `large` |
|
||
| şekil | dize | Kontrol kutusunun şekli. İki seçenek vardır: `squared` ve `rounded` |
|
||
|
||
|
||
|
||
</Tab>
|
||
</Tabs>
|