Data display
GridAvatar
Round avatar built from up to four images, for group chats.
import { GridAvatar } from "datui";Examples
Layouts
Accessibility
- The root is
role="img"labelled byalt; individual tiles arearia-hidden. - More than four images are ignored (with a console warning).
API
GridAvatar
Round avatar made of up to four images, for group chats and teams. Accepts `GridAvatar.Badge`.
| Prop | Type | Default | Description |
|---|---|---|---|
| alt (required) | string | — | Accessible name for the whole group, e.g. the chat title. |
| src (required) | string[] | — | 1–4 image URLs; extras are ignored. |
| className | string | — | |
| noBorder | boolean | — | |
| size | number | 48 | Diameter in px. |