2353bc62cc
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
74 lines
2.0 KiB
Plaintext
74 lines
2.0 KiB
Plaintext
---
|
|
title: Icônes
|
|
image: /images/user-guide/objects/objects.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/objects/objects.png" alt="En-tête" />
|
|
</Frame>
|
|
|
|
Une liste d'icônes utilisées dans notre application.
|
|
|
|
## Icônes Tabler
|
|
|
|
Nous utilisons les icônes Tabler pour React dans toute l'application.
|
|
|
|
<Tabs>
|
|
<Tab title="Installation">
|
|
<br />
|
|
|
|
```
|
|
yarn add @tabler/icons-react
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Propriétés">
|
|
Vous pouvez importer chaque icône en tant que composant. Voici un exemple :
|
|
|
|
<br />
|
|
|
|
```jsx
|
|
import { IconArrowLeft } from "@tabler/icons-react";
|
|
|
|
export const MonComposant = () => {
|
|
return <IconArrowLeft color="red" size={48} />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Propriétés">
|
|
| Propriétés | Type | Description | Par défaut |
|
|
| ---------- | ------ | --------------------------------------------- | --------------- |
|
|
| taille | nombre | La hauteur et la largeur de l'icône en pixels | 24 |
|
|
| couleur | chaîne | La couleur des icônes | couleurCourante |
|
|
| trait | nombre | La largeur du trait de l'icône en pixels | 2 |
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## Icônes personnalisées
|
|
|
|
En plus des icônes Tabler, l'application utilise également certaines icônes personnalisées.
|
|
|
|
### Icône Carnet d'adresses
|
|
|
|
Affiche une icône de carnet d'adresses.
|
|
|
|
<Tabs>
|
|
<Tab title="Utilisation">
|
|
```jsx
|
|
import { IconAddressBook } from 'twenty-ui/display';
|
|
|
|
export const MonComposant = () => {
|
|
return <IconAddressBook size={24} stroke={2} />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Propriétés">
|
|
| Propriétés | Type | Description | Par défaut |
|
|
| ---------- | ------ | --------------------------------------------- | ---------- |
|
|
| taille | nombre | La hauteur et la largeur de l'icône en pixels | 24 |
|
|
| trait | nombre | La largeur du trait de l'icône en pixels | 2 |
|
|
</Tab>
|
|
</Tabs>
|