Files
twenty/packages/twenty-docs/l/af/twenty-ui/display/chip.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

149 lines
5.1 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: Skyfie
image: /images/user-guide/github/github-header.png
---
<Frame>
<img src="/images/user-guide/github/github-header.png" alt="Header" />
</Frame>
n Visuele element wat jy kan gebruik as n kliekbare of nie-kliekbare houer met n etiket, opsionele linker- en regterkomponente, en verskeie stileringopsies om etikette en etikette uit te beeld.
<Tabs>
<Tab title="Usage">
```jsx
import { Chip } from 'twenty-ui/components';
export const MyComponent = () => {
return (
<Chip
size="large"
label="Clickable Chip"
clickable={true}
variant="highlighted"
accent="text-primary"
leftComponent
rightComponent
maxWidth="200px"
className
/>
);
};
```
</Tab>
<Tab title="Props">
| Eienskappe | Tipe | Beskrywing |
| -------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| linkNaEntiteit | string | Die skakel na die entiteit |
| entiteitId | string | Die unieke identifiseerder vir die entiteit |
| naam | string | Die naam van die entiteit |
| pictureUrl | string | s prent |
| avatarType | Avatar Type | Die tipe avatar wat jy wil vertoon. Has two options: `rounded` and `squared` |
| variant | `EntityChipVariant` enum | Variant van die entiteit-skyfie wat jy wil vertoon. Het twee opsies: `gereeld` en `deursigtig` |
| LinksIkon | IkoonKomponent | n React-komponent wat n ikoon voorstel. Gesien aan die linkerkant van die skyfie |
</Tab>
</Tabs>
## Voorbeelde
### Transparent Disabled Chip
```jsx
import { Chip } from 'twenty-ui/components';
export const MyComponent = () => {
return (
<Chip
size="large"
label="Transparent Disabled Chip"
clickable={false}
variant="rounded"
accent="text-secondary"
leftComponent
rightComponent
maxWidth="200px"
className
/>
);
};
```
<br/>
### Disabled Chip with Tooltip
```jsx
import { Chip } from "twenty-ui/components";
export const MyComponent = () => {
return (
<Chip
size="large"
label="Disabled chip that triggers a tooltip when overflowing."
clickable={false}
variant="regular"
accent="text-primary"
leftComponent
rightComponent
maxWidth="200px"
className
/>
);
};
```
## Entiteit Skyfie
n Skyfie-agtige element om inligting oor n entiteit aan te toon.
<Tabs>
<Tab title="Usage">
```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="Entity name"
pictureUrl=""
avatarType="rounded"
variant="regular"
LeftIcon={IconTwentyStar}
/>
</Router>
);
};
```
</Tab>
<Tab title="Props">
| Eienskappe | Tipe | Beskrywing |
| -------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| linkNaEntiteit | string | Die skakel na die entiteit |
| entiteitId | string | Die unieke identifiseerder vir die entiteit |
| naam | string | Die naam van die entiteit |
| pictureUrl | string | s prent |
| avatarType | Avatar Type | Die tipe avatar wat jy wil vertoon. Has two options: `rounded` and `squared` |
| variant | `EntityChipVariant` enum | Variant van die entiteit-skyfie wat jy wil vertoon. Het twee opsies: `gereeld` en `deursigtig` |
| LinksIkon | IkoonKomponent | n React-komponent wat n ikoon voorstel. Gesien aan die linkerkant van die skyfie |
</Tab>
</Tabs>