Chip Group

The Chip Group component displays a group of chip notifications in a uniform position, supports ref methods.

Usage

Default

    <ChipGroup chips={chips} onRemove={(id) => setChips(prev => prev.filter(c => c.id !== id))} />

    Props

    Data table
    TypeDescription
    childrenundefinedChildren are not allowed when using `chips`.
    chipsChipProps[]Chips array is not allowed when using children.
    classNamestringOptional class name for the chip group container.
    data-testidstringOptional test ID for testing frameworks.
    onRemove((id: string) => void)Optional callback when a chip is removed.
    positionPositionTypeDefault position for chips in the group.
    sizeSizeTypeDefault size for chips if not individually specified.