- Docs
- Components
- Data display
Avatar group
A few people at a glance, then +N. One image to a screen reader, named in full.
- Import
- @qeetrix/react/experimental
- Status
- ExperimentalSince 0.0.8
- Renders
<span role="img">Server-rendered- Tested
- WCAG 2.2 AAaxe on every pull request
01
A group's members
people: the first few; total: how many in all. The first max show, then +N.
<AvatarGroup people={firstMembers} total={412} />02
How many show
max, 3 by default. Without total, +N counts the people not shown.
<AvatarGroup people={people} max={5} />03
Applications
shape="square", with a square +N: say what they are in messages.label.
<AvatarGroup
people={apps}
shape="square"
messages={{ label: "{count} applications: {names}" }}
/>04
In a table
sm, by default, fits a table row.
| Group | Members |
|---|---|
| Engineering | |
| Admins | |
| Finance |
{ id: "members", header: "Members", cell: (group) => <AvatarGroup people={group.people} total={group.total} /> }05
In Hindi
QeetrixProvider's locale and messages: the count and the list of names in the name.
<QeetrixProvider locale="hi-IN" messages={hi}>
<AvatarGroup people={people} total={1284} />
</QeetrixProvider>