DocsComponentsChip

Chip

A Chip is a small block of essential information.

Usage

Disabled

Sizes

Colors

Radius

Variants

Start & End Content

With Close Button

If you add an element with the close-button class, the close button will be visible. You can override the close icon by providing an icon inside the close-icon element.

With Avatar

List of Chips

Slots

  • chip: The base slot of the chip, it is the container of the chip.
  • content: The content slot of the chip, it is the container of the chip children.
  • dot: Small dot on the left side of the chip.
  • close-button: Close button classes of the chip.

Custom Styles

You can customize the Chip component by passing custom Tailwind CSS classes to the component slots.

Chip Properties

PropertyTypeDescriptionDefault
sizesm | md | lgThe size of the chip.sm
colorforeground | default | primary | secondary | success | warning | dangerThe color of the chip.default
radiusnone | sm | md | lg | fullThe radius of the chip.md
variantsolid | bordered | light | flat | faded | shadow | dotThe chip appearance style.solid
data-disabled"true" | "false"Disables the chip and applies a disabled styling.false