Installation
npx shadcn@latest add @iconiq/avatarProps
Avatar
Base UI avatar root with shared sizing and an optional tooltip for hover or focus status hints.
childrenReactNodesize"default" | "sm" | "lg"Default "default"
tooltipstringtooltipSide"top" | "bottom" | "left" | "right"Default "right"
tooltipDelaynumberDefault 0.15
tooltipClassNamestringclassNamestringThe 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
Image slot for the compound avatar, backed by Base UI's image loading behavior.
srcstringRequired
altstringRequired
classNamestringAvatarFallback
Fallback slot shown by Base UI while the image is loading, missing, or failed.
childrenReactNodeRequired
classNamestringAvatarBadge
Absolute green status badge that scales with the root Avatar size. Add tooltip to Avatar when the whole avatar should expose the status hint.
childrenReactNodetooltipstringtooltipSide"top" | "bottom" | "left" | "right"Default "right"
tooltipDelaynumberDefault 0.15
tooltipClassNamestringclassNamestringAvatarGroup
Stack wrapper for overlapping avatars and matching overflow count chips.
childrenReactNodeRequired
classNamestringAvatarGroupCount
Overflow count part that follows the largest avatar size used in the group.
childrenReactNodeRequired
classNamestringRegistry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: @base-ui/react, motion.