Examples
Basic
Prop | Default | Type | Description |
---|---|---|---|
max | number | The maximum number of avatars to display before the rest are hidden. |
Overflow Label
This feature allows you to customize the overflow-label that appears when there are more avatars than the maximum number set to display.
Prop | Default | Type | Description |
---|---|---|---|
overflow-label | +${N} | string | Override the default overflow label. |
Size and Square
Prop | Default | Type | Description |
---|---|---|---|
size | md | string | Sets the size of the avatar. |
square | 2.5em | string | Sets the avatar to a square shape with specified dimensions. This does not affect the size of the fallback value. |
🚀 Adjust input size freely using any size, breakpoints (e.g.,
sm:sm, xs:lg
), or states (e.g.,hover:lg, focus:3xl
).
The padding, icons, and text-size of the input scale are dynamically adjusted based on the size property. To customize the text-size and padding simultaneously, you can use utility classes.
Customization
Similar to the size
prop, any available props of the Avatar component can be directly passed to the AvatarGroup
component. These props will then be automatically forwarded to the individual Avatar
components within the group.
You can also use the una
prop to add utility classes, refer to the Props and Presets sections for more information.
Slots
Name | Props | Description |
---|---|---|
default | - | The default slot for the AvatarGroup component. |