5d438bb70c
## Summary - **New Getting Started section** with quickstart guide and restructured navigation - **Halftone-style illustrations** for User Guide and Developer introduction cards using a Canvas 2D filter script - **Removed hero images** (`image:` frontmatter + `<Frame><img>` blocks) from all user-guide article pages - **Cleaned up translations** (13 languages): removed hero images and updated introduction cards to use halftone style - **Cleaned up twenty-ui pages**: removed outdated hero images from component docs - **Deleted orphaned images**: `table.png`, `kanban.png` - **Developer page**: fixed duplicate icon, switched to 3-column layout ## Test plan - [ ] Verify docs site builds without errors - [ ] Check User Guide introduction page renders halftone card images in both light and dark mode - [ ] Check Developer introduction page renders 3-column layout with distinct icons - [ ] Confirm article pages no longer show hero images at the top - [ ] Spot-check a few translated pages to ensure hero images are removed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: github-actions <github-actions@twenty.com>
138 lines
5.2 KiB
Plaintext
138 lines
5.2 KiB
Plaintext
---
|
|
title: Puce
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/github/github-header.png" alt="En-tête" />
|
|
</Frame>
|
|
|
|
Un élément visuel que vous pouvez utiliser comme un conteneur cliquable ou non cliquable avec une étiquette, des composants optionnels à gauche et à droite, et diverses options de style pour afficher des étiquettes et des tags.
|
|
|
|
<Tabs>
|
|
<Tab title="Utilisation">
|
|
```jsx
|
|
import { Chip } from 'twenty-ui/components';
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<Chip
|
|
size="large"
|
|
label="Puce cliquable"
|
|
clickable={true}
|
|
variant="highlighted"
|
|
accent="text-primary"
|
|
leftComponent
|
|
rightComponent
|
|
maxWidth="200px"
|
|
className
|
|
/>
|
|
);
|
|
};
|
|
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Propriétés">
|
|
| Propriétés | Type | Description |
|
|
| ------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------- |
|
|
| linkToEntity | chaîne | Le lien vers l'entité |
|
|
| entityId | chaîne | L'identifiant unique pour l'entité |
|
|
| nom | chaîne | Le nom de l'entité |
|
|
| pictureUrl | chaîne | Image", |
|
|
| avatarType | Type d'avatar | Le type d'avatar que vous souhaitez afficher. Comporte deux options : `rounded` et `squared` |
|
|
| variante | `EntityChipVariant` enum | Variante de la puce entité que vous souhaitez afficher. Comporte deux options : `regular` et `transparent` |
|
|
| LeftIcon | ComposantIcône | Un composant React représentant une icône. Affiché sur le côté gauche de la puce |
|
|
</Tab>
|
|
</Tabs>
|
|
|
|
## Exemples
|
|
|
|
### Puce transparente désactivée
|
|
|
|
```jsx
|
|
import { Chip } from 'twenty-ui/components';
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<Chip
|
|
size="large"
|
|
label="Puce transparente désactivée"
|
|
clickable={false}
|
|
variant="rounded"
|
|
accent="text-secondary"
|
|
leftComponent
|
|
rightComponent
|
|
maxWidth="200px"
|
|
className
|
|
/>
|
|
);
|
|
};
|
|
|
|
```
|
|
|
|
<br />
|
|
|
|
### Puce désactivée avec infobulle
|
|
|
|
```jsx
|
|
import { Chip } from "twenty-ui/components";
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<Chip
|
|
size="large"
|
|
label="Puce désactivée qui déclenche une info-bulle en cas de dépassement."
|
|
clickable={false}
|
|
variant="regular"
|
|
accent="text-primary"
|
|
leftComponent
|
|
rightComponent
|
|
maxWidth="200px"
|
|
className
|
|
/>
|
|
);
|
|
};
|
|
```
|
|
|
|
## Puce entité
|
|
|
|
Un élément semblable à une puce pour afficher des informations sur une entité.
|
|
|
|
<Tabs>
|
|
<Tab title="Utilisation">
|
|
```jsx
|
|
import { BrowserRouter as Router } from 'react-router-dom';
|
|
import { IconTwentyStar } from 'twenty-ui/display';
|
|
import { Chip } from 'twenty-ui/components';
|
|
|
|
export const MyComponent = () => {
|
|
return (
|
|
<Router>
|
|
<Chip
|
|
linkToEntity="/entity-link"
|
|
entityId="entityTest"
|
|
name="Nom de l'entité"
|
|
pictureUrl=""
|
|
avatarType="rounded"
|
|
variant="regular"
|
|
LeftIcon={IconTwentyStar}
|
|
/>
|
|
</Router>
|
|
);
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="Propriétés">
|
|
| Propriétés | Type | Description |
|
|
| ------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------- |
|
|
| linkToEntity | chaîne | Le lien vers l'entité |
|
|
| entityId | chaîne | L'identifiant unique pour l'entité |
|
|
| nom | chaîne | Le nom de l'entité |
|
|
| pictureUrl | chaîne | Image", |
|
|
| avatarType | Type d'avatar | Le type d'avatar que vous souhaitez afficher. Comporte deux options : `rounded` et `squared` |
|
|
| variante | `EntityChipVariant` enum | Variante de la puce entité que vous souhaitez afficher. Comporte deux options : `regular` et `transparent` |
|
|
| LeftIcon | ComposantIcône | Un composant React représentant une icône. Affiché sur le côté gauche de la puce |
|
|
</Tab>
|
|
</Tabs>
|