Files
twenty/packages/twenty-docs/l/he/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.6 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: בחר איקון
image: /images/user-guide/github/github-header.png
---
<Frame>
<img src="/images/user-guide/github/github-header.png" alt="Header" />
</Frame>
בחירה מבוססת תפריט נפתח המאפשרת למשתמשים לבחור איקון מרשימה.
<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">
| תכונות | סוג | תיאור |
| --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------- |
| לא פעיל | בוליאני | משבית את בחירת האיקון אם מוגדר כ-`true` |
| onChange | פונקציה | פונקציית חזרה מופעלת כאשר המשתמש בוחר איקון. מקבלת אובייקט עם מאפיינים `iconKey` ו- `Icon` |
| מפתח איקון נבחר | מחרוזת | המפתח של האיקון הנבחר |
| onClickOutside | function | פונקציית חזרה מופעלת כאשר המשתמש לוחץ מחוץ לתפריט הנפתח |
| onClose | function | פונקציית חזרה מופעלת כאשר התפריט הנפתח נסגר |
| onOpen | function | פונקציית חזרה מופעלת כאשר התפריט הנפתח נפתח |
| גרסה | string | The visual style variant of the clickable icon. האופציות כוללות: `ראשוני`, `שניוני`, ו- `שלישוני` |
</Tab>
</Tabs>