Skip to content

Chat

Message bubbles for conversations and assistants, with avatars, timestamps and a typing state.

Conversation

Which noodle fits a finance dashboard?
Mian assistant · 09:41
Something calm and precise.
You · 09:42
Try Kalguksu: a strict grid, tabular numbers, one green accent.
Mian assistant · 09:42

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/chat.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-chatThe conversation.
mn-chat-msg · mn-chat-endA message; mn-chat-end for the current user.
mn-chat-bubbleThe text. Accepts colour roles.
mn-chat-metaName, time or status.
mn-chat-typingA bubble holding mn-dots.

Accessibility

  • Use role="log" with aria-live="polite" for a live conversation so new messages are read out.
  • Say who sent each message in text (the meta line or a visually hidden span), not only through position or colour.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page