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>
92 lines
1.8 KiB
Plaintext
92 lines
1.8 KiB
Plaintext
---
|
|
title: Icons
|
|
image: /images/user-guide/objects/objects.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/objects/objects.png" alt="Kopfzeile" />
|
|
</Frame>
|
|
|
|
Eine Liste von Symbolen, die in unserer App verwendet werden.
|
|
|
|
## Tabler-Symbole
|
|
|
|
Wir verwenden Tabler-Symbole für React in der gesamten App.
|
|
|
|
<Tabs>
|
|
|
|
<Tab title="Installation">
|
|
<br />
|
|
|
|
```
|
|
yarn add @tabler/icons-react
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Props">
|
|
|
|
Sie können jedes Symbol als Komponente importieren. Hier ist ein Beispiel:
|
|
<br />
|
|
|
|
```jsx
|
|
import { IconArrowLeft } from "@tabler/icons-react";
|
|
|
|
export const MyComponent = () => {
|
|
return <IconArrowLeft color="red" size={48} />;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Props">
|
|
|
|
|
|
| Props | Typ | Beschreibung | Standard |
|
|
| ------ | ------------ | ----------------------------------------- | ------------ |
|
|
| größe | nummer | Die Höhe und Breite des Symbols in Pixeln | 24 |
|
|
| farbe | Zeichenkette | Die Farbe der Symbole | currentColor |
|
|
| Strich | nummer | Die Strichbreite des Symbols in Pixeln | 2 |
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|
|
|
|
## Benutzerdefinierte Symbole
|
|
|
|
Zusätzlich zu den Tabler-Symbolen verwendet die App auch einige benutzerdefinierte Symbole.
|
|
|
|
### Symbol: Adressbuch
|
|
|
|
Zeigt ein Adressbuchsymbol an.
|
|
|
|
<Tabs>
|
|
|
|
<Tab title="Verwendung">
|
|
|
|
```jsx
|
|
import { IconAddressBook } from 'twenty-ui/display';
|
|
|
|
export const MyComponent = () => {
|
|
return <IconAddressBook size={24} stroke={2} />;
|
|
};
|
|
```
|
|
|
|
</Tab>
|
|
|
|
<Tab title="Eigenschaften">
|
|
|
|
|
|
| Eigenschaften | Typ | Beschreibung | Standard |
|
|
| ------------- | ------ | ----------------------------------------- | -------- |
|
|
| größe | nummer | Die Höhe und Breite des Symbols in Pixeln | 24 |
|
|
| Strich | nummer | Die Strichbreite des Symbols in Pixeln | 2 |
|
|
|
|
|
|
|
|
</Tab>
|
|
|
|
</Tabs>
|