Chip

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

Usage & Examples

Default

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

Props API

24 props
Columns
Chip props API
Default
Description
autoClosebooleanNopropstrueWhether the chip should close automatically after a delay.
classNamestringNostylingAdditional class name for custom styling.
closeButtonAriaLabelstringNoprops"Close notification"Custom accessible label for the close button. Defaults to "Close notification".
data-testidstringNotestingBackward-compatible alias for test ID attributes.
durationnumberNoprops3000Time in milliseconds before auto-closing (default: 3000).
glassbooleanNopropsconfigured default glass setting (fallback: false)Applies a translucent frosted-glass treatment using the active theme palette.
iconElementTypeNopropsOptional icon component to show on the left side.
iconAriaLabelstringNopropsAccessible label for the leading icon when it is not decorative.
iconDecorativebooleanNopropstrueWhether the leading icon is decorative. When true, it will be hidden from assistive technology. Defaults to true.
idstringNopropsOptional unique ID for the chip.
messagestringYespropsMessage text to display inside the chip.
messageIdstringNopropsOptional ID for the message element. If omitted, a stable fallback based on testId/id is used.