Avatar Group
Alignment target:@astryxdesign/core v0.7.1 · AvatarGroup
AvatarGroup Props #
| Name | Type | Default | Description |
|---|---|---|---|
size | AvatarSize | 'md' | Uniform size for all avatars in the group: a named size or one of the numeric pixel values AvatarSize lists. It always overrides each child Avatar's own size, including when the group uses its default. |
shape | AvatarShape | 'circle' | Uniform shape for all avatars in the group. |
AvatarGroupOverflow Props #
| Name | Type | Default | Description |
|---|---|---|---|
count | number | - | Number of hidden avatars, displayed as +N. |
| Name | Description |
|---|---|
click | Fired when the indicator is clicked. With a listener the indicator becomes a focusable button instead of a static figure. |
The default slot replaces the +N text, for wordings such as 12+.
Slots #
| Name | Description |
|---|---|
default | Avatar elements, optionally ending with an AvatarGroupOverflow. |
Native attributes #
The root element is a <div role="group">.
The following are passed to the root element:
- HTML attributes.
aria-*attributes.data-*attributes.class.style.