--- title: Chip sidebar_position: 2 sidebar_custom_props: icon: TbLayoutList --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import chipCode from '!!raw-loader!@site/src/ui/display/chipCode.js' import entityChipCode from '!!raw-loader!@site/src/ui/display/entityChipCode.js' import { SandpackEditor} from '@site/src/ui/SandpackEditor' A visual element that you can use as a clickable or non-clickable container with a label, optional left and right components, and various styling options to display labels and tags.
Props Type Description Default
size `ChipSize` enum Specifies the size of the chip. Has two options: `large` and `small` small
disabled boolean Indicates whether the chip is disabled false
clickable boolean Specifies whether the chip is clickable true
label string Represents the text content or label inside the chip
maxWidth string Specifies the maximum width of the chip 200px
variant `ChipVariant` enum Specifies the visual style or variant of the chip. Has four options: `regular`, `highlighted`, `transparent`, and `rounded` regular
accent `ChipAccent` enum Determines the text color or accent color of the chip. Has two options: `text-primary` and `text-secondary` text-primary
leftComponent `React.ReactNode` An optional React/node component that you can place on the left side of the chip
rightComponent `React.ReactNode` An optional React/node component that you can place on the right side of the chip
className string An optional class name to apply additional custom styles to the chip
## Examples ### Transparent Disabled Chip { return ( ); }; `} />
### Disabled Chip with Tooltip { return ( ); }; `} /> ## Entity Chip A Chip-like element to display information about an entity.
Props Type Description Default
linkToEntity string The link to the entity
entityId string The unique identifier for the entity
name string The name of the entity
pictureUrl string The URL of the entity's picture
avatarType Avatar Type The type of avatar you want to display. Has two options: `rounded` and `squared` rounded
variant `EntityChipVariant` enum Variant of the entity chip you want to display. Has two options: `regular` and `transparent` regular
LeftIcon IconComponent A React component representing an icon. Displayed on the left side of the chip