Skip to main content

ChipGroup

Use the ChipGroup component to group multiple Chips in an expandable container.

ChipGroupProps

Signature:

export declare type ChipGroupProps = & ( | ) & ;

ChipGroupBaseProps

extends, ,
NameTypeDefaultDescription
disabled?
falseWhether the chip group is disabled. If set to true, all the chips inside the group are disabled, unless explicitly overridden.
size?
[]
defaultThe size of the spacing and chips in the group. All the chips match the size of the group, but can be overridden individually.
onExpandedChange?
(state: ) =>
-Callback triggered when the expanded state changes.

ChipGroupControlledProps

NameTypeDefaultDescription
expanded?
-Whether the chip group is expanded.

ChipGroupUncontrolledProps

NameTypeDefaultDescription
defaultExpanded?
-Whether the chip group is expanded by default.

ChipGroup.Control

ChipGroupControlProps

extends, ,
NameTypeDefaultDescription
display?
|
inferred from the`expanded`/`defaultExpanded`prop of the`ChipGroup`Whether to show more chips or collapse chips. If undefined, the action is inferred. If no more items are available and all items fit in one line, the control is automatically hidden unless display is set.
count?
|
undefinedWhether to render `Show more` or `Show x more` by default. If true, the count is calculated automatically. The count can be overridden by passing a number.
loading?
falseWhether the control should show the loading indicator.
onClick?
.<>
-Callback triggered when the control is interacted with.
Still have questions?
Find answers in the Dynatrace Community