bloxa

Avatar

FREE

Colored initials fallback, sizes, a status dot and AvatarGroup with +N.

Installation

Terminal
npx @bloxa/cli add avatar
# or: npx shadcn@latest add @bloxa/avatar

Packages installed automatically: radix-ui

Examples

Sizes, status, group

+2

API reference

Every component also accepts the props of the element it renders.

Avatar

PropTypeDefaultDescription
srcstring—Photo.
namestring—Alt text, initials and color.
size"xs" | "sm" | "md" | "lg" | "xl""md"Size.
shape"circle" | "square""circle"Shape.
status"online" | "away" | "busy" | "offline"—Status dot.

AvatarGroup

PropTypeDefaultDescription
maxnumber4Shown at most; the rest become +N.
sizestring"md"Size for every avatar.