Calm motion: animations on this site only fade, with no movement
Conversation list
Conversations with the last message, the time, and the unread count
The side column of a chat or messages app. Put the message scroller of the open conversation next to it.
Basic
conversationsis a list. Each conversation has anid, aname, thelastmessage, and thetimeas text. It can also have anavatar, anunreadcount,online, andtyping.- A conversation with unread messages is bold and has a count, such as "2". Screen readers hear "2 unread messages". A count above 99 shows as "99+".
onlineadds a green dot to the avatar. Screen readers hear "online" after the name.typingshows "typing…" in place of the last message.v-modelis the id of the open conversation. It has a bar in the accent color andaria-current.- The list is a navigation region. Change the words with
labelsor a label pack:title,typing,online, andunread(a function).
Usage
ts
import { BlessConversationList } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
conversations* | BlessConversation[] | — | |
labels | Partial<{ title: string; typing: string; online: string; unread: (count: number) => string; }> | — | |
modelValue | string | — | the id of the open conversation |
Events
| Name | Payload | Description |
|---|---|---|
update:modelValue | [value: string | undefined] |