Skip to content

Component gallery

  1. Chat
  2. Messages

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Chat · 1 of 2

Messages

Chat messages, from a single bubble up to a run of messages from one sender. One is a dialogue you can click through.

packages/ui/src/astro/blocks/message/message.astropackages/ui/src/astro/blocks/message/message-bubble.astropackages/ui/src/astro/blocks/message/message-group.astropackages/ui/src/astro/blocks/message/interactive-message.astro4 sections · 22 stories

  • Message8
  • Bubbles8
  • Groups3
  • Interactive3
Preview settings
Width
Preview width
Stage
Stage

Message

Preview width for Message

message.astro8 stories

Start for the other side, end for the reader. The avatar sits level with the bubble, not the footer.

start
Props of start
<Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} time="09:41" datetime="2026-10-09T09:41">
    <p>Did you finish the history project yet?</p>
</Message>
Open message/start on its own
Greg Heffley09:41
GH

Did you finish the history project yet?

end
Props of end
<Message align="end" time="09:42" datetime="2026-10-09T09:42">
    <p>Not even close. Rowley spilled juice on the poster.</p>
</Message>
Open message/end on its own
09:42

Not even close. Rowley spilled juice on the poster.

status
Props of status
<Message align="end" status="Read">
    <p>Here's the <a href="#message">draft</a>, tell me what you think.</p>
</Message>
Open message/status on its own

Here's the draft, tell me what you think.

Read
ghost-actions
Props of ghost-actions
<Message author="Rowley Jefferson" avatar variant="ghost" time="16:20" datetime="2026-10-09T16:20">
    <p>New Zoo-Wee Mama strip is up on the class board! This one finally has a side…
    <Button slot="footer" size="icon-sm" variant="ghost" tone="neutral" aria-label="Reply"><Icon name="lucide:reply" /></Button>
    <Button slot="footer" size="icon-sm" variant="ghost" tone="neutral" aria-label="Add reaction"><Icon name="lucide:smile-plus" /></Button>
    <Button slot="footer" size="icon-sm" variant="ghost" tone="neutral" aria-label="More actions"><Icon name="lucide:ellipsis" /></Button>
</Message>
Open message/ghost-actions on its own
Rowley Jefferson16:20
RJ

New Zoo-Wee Mama strip is up on the class board! This one finally has a sidekick.

Greg says the ending is too predictable but I think it's the best one yet.

typinganimated
Props of typing
<Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} typing />
Open message/typing on its own
Greg Heffley
GH
Greg Heffley is typing
error
Props of error
<Message align="end" variant="tinted" tone="destructive" status="Not delivered"><p>Can you send me your notes?</p></Message>
Open message/error on its own

Can you send me your notes?

Not delivered
attachment
Props of attachment
<Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} time="09:44">
    <p>Found the old one, use this.</p>
    <Attachment title="history-poster.pdf" icon="lucide:file-text" style="margin-top: var(--space-sm)">PDF · 2.4 MB</Attachment>
</Message>
Open message/attachment on its own
Greg Heffley09:44
GH

Found the old one, use this.

history-poster.pdfPDF · 2.4 MB
long-word
Props of long-word
<Message align="end">
    <p>https://example.com/an/extremely/long/link/that/has/no/spaces/to/break/at/wh…
</Message>
Open message/long-word on its own

https://example.com/an/extremely/long/link/that/has/no/spaces/to/break/at/whatsoever

Bubbles

Preview width for Bubbles

message-bubble.astro8 stories

Ghost drops the frame and the 80% width cap.

solid-neutral
Props of solid-neutral
<MessageBubble variant="solid" tone="neutral"><p>Solid bubble, neutral tone.</p></MessageBubble>
Open message-bubble/solid-neutral on its own

Solid bubble, neutral tone.

solid-primary
Props of solid-primary
<MessageBubble variant="solid" tone="primary"><p>Solid bubble, primary tone.</p></MessageBubble>
Open message-bubble/solid-primary on its own

Solid bubble, primary tone.

tinted-neutral
Props of tinted-neutral
<MessageBubble variant="tinted" tone="neutral"><p>Tinted bubble, neutral tone.</p></MessageBubble>
Open message-bubble/tinted-neutral on its own

Tinted bubble, neutral tone.

tinted-primary
Props of tinted-primary
<MessageBubble variant="tinted" tone="primary"><p>Tinted bubble, primary tone.</p></MessageBubble>
Open message-bubble/tinted-primary on its own

Tinted bubble, primary tone.

outline-neutral
Props of outline-neutral
<MessageBubble variant="outline" tone="neutral"><p>Outline bubble, neutral tone.</p></MessageBubble>
Open message-bubble/outline-neutral on its own

Outline bubble, neutral tone.

outline-primary
Props of outline-primary
<MessageBubble variant="outline" tone="primary"><p>Outline bubble, primary tone.</p></MessageBubble>
Open message-bubble/outline-primary on its own

Outline bubble, primary tone.

ghost-neutral
Props of ghost-neutral
<MessageBubble variant="ghost" tone="neutral"><p>Ghost bubble, neutral tone.</p></MessageBubble>
Open message-bubble/ghost-neutral on its own

Ghost bubble, neutral tone.

ghost-primary
Props of ghost-primary
<MessageBubble variant="ghost" tone="primary"><p>Ghost bubble, primary tone.</p></MessageBubble>
Open message-bubble/ghost-primary on its own

Ghost bubble, primary tone.

Groups

Preview width for Groups

message-group.astro3 stories

The first message names the sender; the last carries the avatar (the first, for ghost messages).

start
Props of start
<MessageGroup>
    <Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} time="18:02"><p>Hey.</p></Message>
    <Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} time="18:02">
        <p>Are you coming to the Halloween party?</p>
    </Message>
    <Message author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} time="18:02"><p>Mom says I can go if you go.</p></Message>
</MessageGroup>
Open message-group/start on its own
Greg Heffley18:02
GH

Hey.

Greg Heffley18:02
GH

Are you coming to the Halloween party?

Greg Heffley18:02
GH

Mom says I can go if you go.

ghost
Props of ghost
<MessageGroup>
    <Message author="Rodrick Heffley" avatar variant="ghost" time="07:15">
        <p>Who took the last juice box from the fridge?</p>
    </Message>
    <Message author="Rodrick Heffley" avatar variant="ghost" time="07:15"><p>It was labeled.</p></Message>
    <Message author="Rodrick Heffley" avatar variant="ghost" time="07:15"><p>In marker.</p></Message>
</MessageGroup>
Open message-group/ghost on its own
Rodrick Heffley07:15
RH

Who took the last juice box from the fridge?

Rodrick Heffley07:15
RH

It was labeled.

Rodrick Heffley07:15
RH

In marker.

end
Props of end
<MessageGroup>
    <Message align="end"><p>Maybe.</p></Message>
    <Message align="end">
        <p>Only if we skip the haunted house.</p>
    </Message>
</MessageGroup>
Open message-group/end on its own

Maybe.

Only if we skip the haunted house.

Interactive

Preview width for Interactive

interactive-message.astro3 stories

Pick a reply to walk the dialogue tree. Without JS, only the opening shows. Rodrick's branches run page-wide actions.

default
Props of default
<InteractiveMessage tree={{ messages: ["Hey Greg!", "Want to come over and play Twisted Wizard?"], options: [{…}, {…}] }} author="Rowley Jefferson" />
Open interactive-message/default on its own
Rowley Jefferson
RJ

Hey Greg!

Rowley Jefferson
RJ

Want to come over and play Twisted Wizard?

page-actions
Props of page-actions
<InteractiveMessage tree={{ messages: ["What do you want, dweeb?"], options: [{…}, {…}] }} author="Rodrick Heffley" />
Open interactive-message/page-actions on its own
Rodrick Heffley
RH

What do you want, dweeb?

capped-height
Props of capped-height
<InteractiveMessage tree={{ messages: ["Hey Greg!", "Want to come over and play Twisted Wizard?"], options: [{…}, {…}] }} author="Greg Heffley" avatar={image("/_astro/greg.B9OwiVM9.jpg")} style="max-block-size: 18rem" />
Open interactive-message/capped-height on its own
Greg Heffley
GH

Hey Greg!

Greg Heffley
GH

Want to come over and play Twisted Wizard?

PreviousContact methodsNextPosts