Content
Avatar
Shows a person as a photo or as coloured initials, alone or in an overlapping group.
Group: Content. Exports: Avatar, AvatarGroup. shadcn/ui equivalent: Avatar (partial parity).
Usage
import { Avatar } from "./halaska-kit";
Avatar props
namestring:srcstring:sizenumber(default 32): Size of the control.
AvatarGroup props
namesarray:maxnumber(default 4):sizenumber(default 28): Size of the control.
Accessibility
- With a src, the image takes the name as its alt text.
- Without a src, or when the image fails to load, initials are shown and the avatar is exposed as an image named with the full name.
- The group's overflow count is read as plain text, for example +3.
Known gaps
- No square or rounded shape option, and no status badge on the avatar.
Used in
chat screen, Contextual taskbar, Taskboard, Agent setup
Halaska UI · Components · Patterns · Screens · Install