Skip to content
daisyBlazor

ChatBubble

One message in a daisyUI chat thread. Placement puts it on the start or end side; Image, Header and Footer add an avatar, sender line and delivery status.
Data display.chat
Cover · <ChatBubble>
MC
Mei
Is staging green?
OH
Omar
All checks passed.
MC
Ship it at nine?
OH
I'll watch the logs.

Examples

Conversation

Alternate Placement between Start and End to build a thread.

Did you see the new signup numbers?
Up 22% since the pricing change.
The Pro plan is doing most of the work.
Review at six?
website/Examples/DataDisplay/ChatBubbleConversationExample.razor Source

Colors

Color maps to chat-bubble-* so bubbles follow the theme.

Primary
Secondary
Accent
Neutral
Info
Success
Warning
Error
website/Examples/DataDisplay/ChatBubbleColorsExample.razor Source

Playground

Tom · 18:04
Staging is green, deploying at nine.
Placement ChatPlacement
Color Color
<ChatBubble
            Color="Color.Primary"
            Header="Tom · 18:04"
            Footer="Seen">
    Staging is green, deploying at nine.
</ChatBubble>

API

<ChatBubble>

DaisyBlazor

Parameters

  • Color Color
    = Color.Default

    Semantic color applied to the bubble via .chat-bubble-{token}.

  • Footer string
    = null

    Optional text rendered in the .chat-footer slot (e.g. "Delivered", "Seen").

  • Header string
    = null

    Optional text rendered in the .chat-header slot (e.g. sender name + timestamp).

  • Placement ChatPlacement
    = ChatPlacement.Start

    Whether the bubble appears on the left (Start) or right (End) side.

  • Class string
    = null

    Extra CSS classes added to the outer chat element.

  • Style string
    = null

    Inline styles applied to the outer chat element.

Content

  • ChildContent RenderFragment

    The message content rendered inside the .chat-bubble.

  • Image RenderFragment

    Optional avatar content rendered in the .chat-image slot.

Something went wrong while running the docs. Reload