Skip to content
Chat message, light
Light
Chat message, dark
Dark

Every state

  • Chat message, default, light
    Chat message, default, dark

    default

  • Chat message, typing, light
    Chat message, typing, dark

    typing

  • Chat message, sending, light
    Chat message, sending, dark

    sending

  • Chat message, failed, light
    Chat message, failed, dark

    failed

  • Chat message, hover, light
    Chat message, hover, dark

    hover

  • Chat message, focus, light
    Chat message, focus, dark

    focus

  • Chat message, group, light
    Chat message, group, dark

    group

  • Chat message, dates, light
    Chat message, dates, dark

    dates

Props

PropTypeDefaultWhat it does
labelstring"Conversation with Sanne Visser"Accessible name of the conversation.
mestring"joris"Your id: messages from this person are yours.
messagesCommentChatMessageItem[][ { id: "m1", from: sanne, at: "2026-11-26T16:52:00Z", text: "The Leeds parcel came back with a torn label. I re-prin…Oldest first.
typingCommentChatMessagePerson | null–Who is typing now. Null: no one.
nowstring–ISO date-time that counts as now, for "Today" and "Yesterday" on the day dividers. Leave out to show dates.
localestring"en-GB"Locale for numbers and dates.
timeZonestring"Europe/Amsterdam"IANA time zone the times are in.
groupMinutesnumber5Messages from one person closer together than this many minutes form one group.
labels{ you: string today: string yesterday: string status: Record<CommentChatMessageStatus, string> retry: string typing: string }{ you: "You", today: "Today", yesterday: "Yesterday", status: { sending: "Sending", sent: "Sent", delivered: "Deliver…Labels.
onRetry(id: string) => void–Called with a failed message's id when Retry is pressed.
classNamestring–Extra classes on the outer element.

More comments

All 6
comment-01 is in UI ProGet UI Pro, €199

Preview

Open the page
In UI Pro: get it, €199 once

With every block and theme. 400+ buyers since 2020. Plans