Assigned toSUand reviewed byA1A3A2on this release.
Installation
npx shadcn@latest add @iconiq/avatarProps
Avatar
8 props
Base UI avatar root with shared sizing and an optional tooltip for hover or focus status hints.
children
ReactNodeCompose AvatarImage, AvatarFallback, and an optional AvatarBadge inside the root.
size
"default" | "sm" | "lg"Default
"default"Controls the root size and drives badge/fallback sizing through data-size selectors.
tooltip
stringOptional short label shown in the Iconiq tooltip surface when the entire avatar is hovered or focused.
tooltipSide
"top" | "bottom" | "left" | "right"Default
"right"Preferred side for the avatar tooltip bubble. The default collision order is right, left, top, then bottom.
tooltipDelay
numberDefault
0.15Delay in seconds before the avatar tooltip opens.
tooltipClassName
stringMerged onto the tooltip bubble when the avatar tooltip is enabled.
reducedMotion
booleanForces the avatar tooltip onto its calmer motion path while still respecting system reduced-motion preferences when unset.
className
stringMerged onto the Base UI avatar root. Use it for local radius, ring, or size overrides.
Notes
The root renders data-slot="avatar" and data-size so grouped stacks and badges can respond to the selected size.
The root keeps a circular border overlay with dark/light blend handling and accepts the full Base UI Root props surface.
AvatarImage
3 props
Image slot for the compound avatar, backed by Base UI's image loading behavior.
src
stringRequired
Image URL passed to the underlying Base UI image primitive.
alt
stringRequired
Accessible text for the image. Pass an empty string only when the avatar is decorative.
className
stringMerged with the full-size rounded image classes.
AvatarFallback
2 props
Fallback slot shown by Base UI while the image is loading, missing, or failed.
children
ReactNodeRequired
Initials, icon, or other compact fallback content centered inside the avatar.
className
stringMerged with the muted circular fallback classes.
AvatarBadge
7 props
Absolute green status badge that scales with the root Avatar size. Add tooltip to Avatar when the whole avatar should expose the status hint.
children
ReactNodeOptional icon or status mark. Small avatars hide nested SVGs automatically.
tooltip
stringOptional short label shown in the Iconiq tooltip surface when only the badge should be the trigger.
tooltipSide
"top" | "bottom" | "left" | "right"Default
"right"Preferred side for the tooltip bubble. The default collision order is right, left, top, then bottom.
tooltipDelay
numberDefault
0.15Delay in seconds before the tooltip opens.
tooltipClassName
stringMerged onto the tooltip bubble when the badge tooltip is enabled.
reducedMotion
booleanForces the badge tooltip onto its calmer motion path while still respecting system reduced-motion preferences when unset.
className
stringMerged with the green status badge background, foreground, and ring classes.
AvatarGroup
2 props
Stack wrapper for overlapping avatars and matching overflow count chips.
children
ReactNodeRequired
Avatar and AvatarGroupCount children rendered in an overlapping row.
className
stringMerged with the negative-space group classes and child avatar rings.
AvatarGroupCount
2 props
Overflow count part that follows the largest avatar size used in the group.
children
ReactNodeRequired
Count label or icon shown after the visible avatars.
className
stringMerged with the muted circular count chip classes.