Files
twenty/packages/twenty-docs/l/tr/twenty-ui/input/icon-picker.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

57 lines
2.4 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: Simge Seçici
image: /images/user-guide/github/github-header.png
---
<Frame>
<img src="/images/user-guide/github/github-header.png" alt="Header" />
</Frame>
Kullanıcıların bir listeden simge seçmesine olanak tanıyan bir açılır menü tabanlı simge seçici.
<Tabs>
<Tab title="Usage">
```jsx
import { RecoilRoot } from "recoil";
import React, { useState } from "react";
import { IconPicker } from "@/ui/input/components/IconPicker";
export const MyComponent = () => {
const [selectedIcon, setSelectedIcon] = useState("");
const handleIconChange = ({ iconKey, Icon }) => {
console.log("Selected Icon:", iconKey);
setSelectedIcon(iconKey);
};
return (
<RecoilRoot>
<IconPicker
disabled={false}
onChange={handleIconChange}
selectedIconKey={selectedIcon}
variant="primary"
/>
</RecoilRoot>
);
};
```
</Tab>
<Tab title="Props">
| Özellikler | Tür | Açıklama |
| --------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
| devre dışı | boolean | `true` ayarlandığında simge seçiciyi devre dışı bırakır. |
| onChange | fonksiyon | The callback function triggered when the user selects an icon. `iconKey` ve `Icon` özellikleri olan bir nesne alır |
| selectedIconKey | metin | Başlangıçta seçilen simgenin anahtarı |
| onClickOutside | fonksiyon | Callback function triggered when the user clicks outside the dropdown |
| onClose | fonksiyon | Callback function triggered when the dropdown is closed |
| onOpen | function | Callback function triggered when the dropdown is opened |
| variant | metin | Tıklanabilir simgenin görsel stil varyantı. Seçenekler şunları içerir: `primary`, `secondary` ve `tertiary` |
</Tab>
</Tabs>