Skip to content

Avatar ​

Image with initials fallback

A square plate, like everything else — a circle would be the one shape here that can't lean (the rule). lean makes it lean on attention like a plate — when it is hovered or focused itself, or when the link or button it sits in is; 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, 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.