Skip to content

Message ​

Avatar + header + content + footer row

A message with its sender around it — avatar, name, time — holding one or more Bubbles. Each is an article, so screen-reader users can jump between messages.

Basic
Megumi
おはよう。今日の予定は?
Tomoya
脚本の続き。第3話まで。
Tomoya
夜までには送る。
Delivered
  • align="end" for the viewer's own; compact drops the avatar and header for consecutive messages from the same sender.
  • time is shown as written; add datetime so the <time> element carries the real timestamp.

Usage ​

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

API ​

Props

NameTypeDefaultDescription
namestring—sender name, shown in header and used for avatar initials
timestring—timestamp / meta text in header
datetimestring—machine-readable form of `time` for the <time> element
avatarstring—
align"start" | "end""start"start = other party, end = self
compactboolean—hide avatar column (consecutive messages in a group)

Slots

NameScopeDescription
avatar—
header—
default—
footer—
actions—

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