UsersAvatarGroup
proUsersAvatarGroup turns person records into a compact participant stack with image, tooltip, overflow, and click handling.
Installation
Add this component with the NateUI CLI.
Examples
Overflow
Custom Record Keys
Avatar And Group Props
Avatar Click
Selected:Ava Chen
API
UsersAvatarGroup is a record-to-avatar adapter over Avatar.Group. It uses the configured image field for src, the configured name field for each tooltip, and forwards the remaining Avatar.Group props.
| Prop | Description | Type | Default |
|---|---|---|---|
users | String-keyed user records rendered as avatars. | UserRecord[] | [] |
imgKey | User-record field passed to the Avatar src prop. | string | 'img' |
nameKey | User-record field shown in each Avatar tooltip. | string | 'name' |
avatarProps | Props applied to every generated Avatar after the wrapper defaults. | AvatarProps | {} |
avatarGroupProps | Avatar.Group props applied before direct group props. | AvatarGroupProps | {} |
onAvatarClick | Called with the clicked user record. | UserAvatarClickHandler | - |
chained | Overlaps the avatars into a stack. | boolean | true |
maxCount | Visible-avatar limit before the generated +N avatar appears. | number | 4 |
...AvatarGroupProps | Direct Avatar.Group props, such as className, omittedAvatarContent, and onOmittedAvatarClick. These take priority over the same field in avatarGroupProps. | AvatarGroupProps | - |
Each generated Avatar defaults to shape="circle", size={30}, and a pointer cursor. avatarProps can override those defaults.