Avatar
A person or organisation as a square cell, never a circle. The photo fills it; while it loads or if it fails, the initials hold the cell. A group shares its seams and folds the overflow into one count cell.
Loading the live example…
Installation
Run it where your components.json is. The first time, map the @keyline-ui registry: one command, in Installation.
Usage
Examples
Status and a missing photo
status turns the avatar's floor into a line with its own shape for each kind, and joins the words to its name. Toby's photo fails to load, so his initials show.
Loading the live example…
Props
For a count that opens the full list, leave out max and put AvatarGroupCount in a popover trigger. avatarInitials(name) is exported too. Built on Base UI Avatar.