Files
twenty/packages/twenty-docs/l/de/twenty-ui/input/icon-picker.mdx
T
github-actions[bot] 655b788e8d i18n - docs translations (#22280)
Created by Github action

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/22280?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->

Co-authored-by: github-actions <github-actions@twenty.com>
2026-06-29 06:48:09 +02:00

58 lines
2.4 KiB
Plaintext

---
title: Symbolauswahl
---
<Frame>
<img src="/images/user-guide/github/github-header.png" alt="Kopfzeile" />
</Frame>
Eine Dropdown-basierte Symbolauswahl, mit der Benutzer ein Symbol aus einer Liste auswählen können.
<Tabs>
<Tab title="&#x22;Verwendung&#x22;">
```jsx
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 (
<IconPicker
disabled={false}
onChange={handleIconChange}
selectedIconKey={selectedIcon}
variant="primary"
/>
);
};
```
</Tab>
<Tab title="&#x22;Eigenschaften&#x22;">
| Props | Typ | Beschreibung |
| --------------- | ------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| deaktiviert | boolesch | Deaktiviert die Symbolauswahl, wenn auf `true` gesetzt ist. |
| beiÄnderung | function | Die Rückruffunktion wird ausgelöst, wenn der Benutzer ein Symbol auswählt. Es erhält ein Objekt mit `iconKey` und `Icon` Eigenschaften |
| selectedIconKey | string | Der Schlüssel des ursprünglich ausgewählten Symbols |
| onClickOutside | Funktion | Rückruffunktion wird ausgelöst, wenn der Benutzer außerhalb des Dropdowns klickt |
| onClose | Funktion | Rückruffunktion wird ausgelöst, wenn das Dropdown geschlossen wird |
| onOpen | Funktion | Rückruffunktion wird ausgelöst, wenn das Dropdown geöffnet wird |
| Variante | Zeichenkette | Die visuelle Stilvariante des klickbaren Symbols. Optionen umfassen: `primary`, `secondary` und `tertiary` |
</Tab>
</Tabs>