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

Read receipt ​

Sent, delivered, and read marks for a message, with who read it

Shows the state of a message that the reader sent. Put it under the chat bubble of each own message.

Basic
09:14Sending09:12Sent09:10Delivered09:02Read08:55Read by Ana, Budi, and Citra08:50Not sent
  • status is sending, sent, delivered, read, or failed.
  • Sending shows a clock, sent shows one tick, and delivered shows two ticks. Screen readers hear the word for each state.
  • Read shows two ticks in the accent color and the word "Read", so the state does not rest on the color. In a group chat, readBy lists who read it, such as "Read by Ana, Budi, and Citra".
  • Failed shows "Not sent" and a "Try again" button that emits retry.
  • time is the time of the message, as text. The words also show as a tooltip.
  • locale sets how the names are joined (default English). Change the words with labels or a label pack: the five states, retry, and readBy (a function).

Usage ​

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

API ​

Props

NameTypeDefaultDescription
status*BlessReceiptStatus—
readBystring[]—who read it, in a group chat
timestring—when, as text
labelsPartial<Record<BlessReceiptStatus, string> & { retry: string; readBy: (names: string) => string; }>—
localestring"en"

Events

NamePayloadDescription
retry[]

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