Avatar
Display user profiles. Robust fallbacks. Build trust visually.
IFIgnacio Figueroa
Signed in as owner
Installation
pnpm dlx nachui add avatarAnatomy
Composition
Use the following composition to build an
Avatar:Variants
Default
IFIgnacio Figueroa
Signed in as owner
Sizes
You can change the size via the
size prop.
NVNicolas Vazquez
commented on checkout-flow, 2m ago
MZManuel Zarraga
Engineering, joined Feb 2024
IFIgnacio Figueroa
Workspace owner, acmestudio.dev
With Fallback
If the image takes time to load or fails, the fallback text (usually initials) will be displayed.
Pending invites
Camila Ortiz
camila@acmestudio.dev
TI
InvitedTomas Iglesias
tomas@acmestudio.dev
Avatar Group
Display multiple avatars overlapping using
Avatar.Group.Fix cart totals on partial refunds
#412 opened 3 days ago by lucia
IF
NV
MZ+3API Reference
Avatar
| Prop | Type | Default | Description |
|---|---|---|---|
size | 'sm' | 'md' | 'lg' | 'md' | Visual size of avatar |
className | string | - | Additional CSS classes |
Found something to improve?
Notice a bug, typo, or missing detail on this page? Help us make the documentation better by opening a GitHub issue.