--- title: Chip --- Intestazione Un elemento visivo che puoi utilizzare come contenitore cliccabile o non cliccabile con un'etichetta, componenti opzionali a sinistra e a destra, e varie opzioni di stile per visualizzare etichette e tag. ```jsx import { Chip } from 'twenty-ui/components'; export const MyComponent = () => { return ( ); }; ``` | Props | Tipo | Descrizione | | -------------- | -------------------------------- | ----------------------------------------------------------------------------------------------- | | collegaAEntità | string | Il link all'entità | | entityId | stringa | L'identificatore unico per l'entità | | nome | stringa | Il nome dell'entità | | pictureUrl | stringa | immagine", | | avatarType | Tipo di Avatar | Il tipo di avatar che vuoi visualizzare. Ha due opzioni: `rounded` e `squared` | | variante | `EntityChipVariant` enumerazione | Variante del chip dell'entità che vuoi visualizzare. Ha due opzioni: `regolare` e `trasparente` | | IconaSinistra | IconaComponente | Un componente React che rappresenta un'icona. Visualizzato sul lato sinistro del chip | ## Esempi ### Chip Trasparente Disabilitato ```jsx import { Chip } from 'twenty-ui/components'; export const MyComponent = () => { return ( ); }; ```
### Chip Disabilitato con Tooltip ```jsx import { Chip } from "twenty-ui/components"; export const MyComponent = () => { return ( ); }; ``` ## Chip Entità Un elemento simile a un chip per visualizzare informazioni su un'entità. ```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 ( ); }; ``` | Props | Tipo | Descrizione | | -------------- | -------------------------------- | ---------------------------------------------------------------------------------------------- | | collegaAEntità | stringa | Il link all'entità | | entityId | string | L'identificatore unico per l'entità | | nome | stringa | Il nome dell'entità | | pictureUrl | stringa | immagine", | | avatarType | Tipo di Avatar | Il tipo di avatar che vuoi visualizzare. Ha due opzioni: `rounded` e `squared` | | variante | `EntityChipVariant` enumerazione | Variante del chip dell'entità che vuoi visualizzare. Ha due opzioni: `regular` e `transparent` | | IconaSinistra | IconaComponente | Un componente React che rappresenta un'icona. Visualizzato sul lato sinistro del chip |