Skip to content
Calm motion: animations on this site only fade, with no movement

Avatar ​

Image with initials fallback

A square plate, like everything else: a circle is the one shape here that cannot lean (see the rule). lean makes it lean on attention like a plate. It leans when the avatar itself is hovered or focused. It also leans when the link or button around it is hovered or focused. The image inside is counter-skewed, so the face stays upright. color is surface (default) or text. accent marks a chosen person, like the selected assignee, and never one at rest.

Initials are the first letter of the first two words of name (Megumi Kato → MK, 加藤 恵 → 加恵). They show when there is no src, or when the image fails to load: including a failure that happens before the page hydrates. Without an image the avatar is role="img" named by alt or name. With neither it is decorative. Sizes: xs 24 · sm 32 · md 40 · lg 56 · xl 80 px.

Basic
Eriri SpencerMichiru Hyodo

Usage ​

ts
import { BlessAvatar } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
srcstring—
altstring—
namestring—used for initials fallback
size"md" | "sm" | "xs" | "lg" | "xl""md"
leanboolean—lean on attention like a plate — its own, or the link or button it sits in
color"text" | "accent" | "surface""surface"

Slots

NameScopeDescription
default—

Released under the MIT License. Character names and artwork belong to their owners.