- Accordion
- AI Elements
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- ButtonGroup
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Collapsible
- Combobox
- Command
- Date Picker
- Dialog
- Dropdown Menu
- Field
- File Picker
- Input
- InputGroup
- InputOTP
- Loader
- Menubar
- Pagination
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Select
- Sheet
- Sonner
- Table
- Tabs
- Textarea
- Toggle
- Tooltip
Avatar
Avatar component with 5 sizes (xs/sm/default/lg/xl), image/fallback/icon types, AvatarBadge for status dots or icons, and AvatarGroup with AvatarGroupCount for displaying multiple avatars.
Import
Live Demo
Avatar sizes, badge states, and group compositions.
Image — all sizes (xs / sm / default / lg / xl)
CN
CN
CN
CN
CNImage + Status Badge (green dot)
CN
CN
CN
CN
CNImage + Icon Badge
CN
CN
CN
CN
CNFallback — all sizes
Fallback — shuffled card colors (background + text seeded by initials)
Fallback — name prop (first letter of first + last word, uppercase)
Fallback — color is stable per initials across sizes
Avatar Group — xs
Avatar Group — fallback-only members (shuffled colors)
Icon Fallback — all sizes
Avatar Group (3 avatars)
CN
VC
SDAvatar Group + Count (+3)
CN
VC
SDAvatar Group + Add Icon
CN
VC
SDAvatar Form Field (avatar + change photo)
CNProps
| Name | Type | Default | Description |
|---|---|---|---|
| size | "xs" | "sm" | "default" | "lg" | "xl" | "default" | The size of the avatar |
Examples
With Image
Fallback Only
Shown when the image fails to load or isn't provided.
With Status Badge
Add a status indicator or custom icon badge.
Avatar Group
Display multiple avatars with overflow count.