Base Components
Avatar Group Compact
More compact version of AvatarGroup.
+9
Installation
This component is intended to be used with the <Avatar>
component. Refer to the Avatar documentation for setup instructions before using this component.
Create a avatar-group-compact.tsx
file and paste the following code into it.
/components/ui/avatar-group-compact.tsx
Update the import paths to match your project setup.
Examples
Stroke
+9
Size
+9
+9
+9
API Reference
AvatarGroupCompact.Root
This component is based on the <div>
element and supports all of its props and adds:
Prop | Type | Default |
---|---|---|
size | "40" |"32" |"24" | "40" |
variant | "default" |"stroke" | "default" |
AvatarGroupCompact.Stack
Arranges a compact stack of avatar components, showing them with slight overlap. Use within <AvatarGroupCompact.Root>
to manage the display of multiple avatars in a compact space. This component is based on the <div>
element and supports all of its props.
AvatarGroupCompact.Overflow
Displays an overflow indicator when the number of avatars exceeds the visible space. Typically shows a count of extra avatars not displayed. This component is based on the <div>
element and supports all of its props.
© 2024 AlignUI Design System. All rights reserved.