CARDS & DECORATION
UserCard
Horizontal user row with avatar + name + optional meta and trailing slots. Memphis frame with a 4px shadow.
Import
Basic
D
Damo Membro
DAMO@EXAMPLE.COM
Trailing slot
D
Damo Membro
DAMO@EXAMPLE.COM
PRO
Custom avatar
Props
UserCard props
| Prop | Type | Default | Description |
|---|---|---|---|
| name* | string | — | Display name. Used to derive the default avatar initial. |
| avatar | ReactNode | — | Custom avatar node. When omitted UserCard renders a circular ink tile with the first letter of name. |
| meta | ReactNode | — | Optional mono caption rendered under the name. |
| trailing | ReactNode | — | Optional right-aligned slot — typically a Badge or status chip. |
Accessibility
- Composes
<Card variant="default">— same a11y contract as Card: a presentational row that forwardsrole/aria-*. - The avatar fallback (first letter of
name) is decorative; when the avatar is the only identifier, addaria-labelon the card. If the whole row is clickable, wrap it in a<button>or<a>— the row layout is not a focus target on its own.