Examples
Basic
Prop | Default | Description |
---|---|---|
max | 3 | The maximum number of avatars to display before the rest are hidden. |
+1DRAF
Read more in Avatar component
Size and Square
Prop | Default | Type | Description |
---|---|---|---|
size | md | string | Sets the size of the avatar. |
square | 2.5rem | 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.
+1PRDRAF
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.
+1DRAF
Slots
Name | Props | Description |
---|---|---|
default | - | The default slot for the AvatarGroup component. |
Presets
shortcuts/avatar-group.ts
Props
types/avatar-group.ts