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
statusissending,sent,delivered,read, orfailed.- 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,
readBylists who read it, such as "Read by Ana, Budi, and Citra". - Failed shows "Not sent" and a "Try again" button that emits
retry. timeis the time of the message, as text. The words also show as a tooltip.localesets how the names are joined (default English). Change the words withlabelsor a label pack: the five states,retry, andreadBy(a function).
Usage
ts
import { BlessReadReceipt } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
status* | BlessReceiptStatus | — | |
readBy | string[] | — | who read it, in a group chat |
time | string | — | when, as text |
labels | Partial<Record<BlessReceiptStatus, string> & { retry: string; readBy: (names: string) => string; }> | — | |
locale | string | "en" |
Events
| Name | Payload | Description |
|---|---|---|
retry | [] |