Chip

The Chip component displays small, contextual messages or notifications. It supports icons and floating positions.

Usage

Default

<Chip id="default" message="This is a chip message!" visible={visible} usePortal onClose={...} />

Props

Sortable data table
PropTypeDefaultDescription
idstring-Unique identifier for the chip.
messagestring-Content displayed inside the chip.
visibleboolean-Controls visibility of the chip.
onClose() => void-Callback fired when the close icon is clicked.
iconReactNode-Optional icon displayed in the chip.
closeIconReactNode-Custom close icon component (if closable).
size"xs" | "small" | "medium" | "large" | "xl"Configured DefaultSize of the chip.
theme"primary" | "secondary" | "tertiary" | "quaternary" | "clear"Configured DefaultVisual theme of the chip.
state"" | "success" | "error" | "warning"-Chip state styling.
rounding"none" | "small" | "medium" | "large"Configured DefaultBorder radius style of the chip.
shadow"none" | "light" | "medium" | "strong" | "intense"Configured DefaultShadow style applied to the chip.
position"topLeft" | "topCenter" | "topRight" | "bottomLeft" | "bottomCenter" | "bottomRight"""topCenter"Position of the chip when floating.
usePortalbooleantrueRender chip inside a portal.
autoClosebooleantrueWhether the chip should auto-close.
durationnumber3000Auto-close timeout in milliseconds.
classNamestring-Additional CSS class names.
data-testidstring"chip"Test ID for end-to-end or unit testing.