- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
VV
CN
VV
SA
PVInstallation
pnpm dlx shadcn@latest add https://shark.vini.one/r/avatar.json
Usage
import { Avatar, AvatarImage, AvatarFallback } from "@/components/ui/avatar";
<Avatar> <AvatarImage src="https://github.com/vinihvc.png" /> <AvatarFallback>VV</AvatarFallback> </Avatar>
Sizes
Use the size prop to change the size of the avatar.
Small
VVMedium
VVLarge
VVExamples
Avatar Group
Use the <AvatarGroup /> to add a group of avatars.
VV
SA
PV
IABadge
Use <AvatarBadge /> to show status indicators on avatars.
VV
SA
PVBadge with Icon
Add an icon to <AvatarBadge /> for actions like adding a user.
VVFallback with Icon
Use an icon inside <AvatarFallback /> when you have no image or initials.
Avatar Group Count
Use <AvatarGroupCount /> to add a count to the group.
VV
SA
PV
IAAvatar Group Count Icon
The <AvatarGroupCount /> also supports an icon.
VV
SA
PV
IAAvatar with Popover
Works with the <Popover> component to show additional information.
VV
SA
PV
IAAvatar with Hover Card
Works with the <HoverCard> component to show user information on hover.
Custom Size
Use size-* to set the size of the avatar.
VVCustom Radius
Use rounded-* to set the radius of the avatar.
VV
CN
SA
PVCustom Colors
Customize the <AvatarFallback /> with a custom color.
API Reference
Avatar
Container for user or entity profile image. Supports sizes and fallback.
| Prop | Type | Default |
|---|---|---|
size | sm, md, lg | md |
className | string | - |
asChild | boolean | false |
AvatarImage
Profile image. Shown when URL loads; fallback used on error.
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | false |
AvatarFallback
Shown when the image fails to load or is loading. Often initials or icon.
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | false |
AvatarGroup
Groups avatars with overlap and optional count badge.
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | false |
AvatarGroupCount
Shows "+N" when more avatars exist than displayed (e.g. "+5").
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | false |
AvatarBadge
Status or indicator badge overlaid on the avatar corner.
| Prop | Type | Default |
|---|---|---|
variant | default, success, info, warning, destructive | default |
className | string | - |
asChild | boolean | false |
For a complete list of props, see the Ark UI documentation.
On This Page