Chat

DChat renders a daisyUI chat row: side, avatar, header, colored bubble and footer — pure CSS “chat bubble” tails included.

Sides & colors
Alice
Hi! Have you tried these Blazor daisyUI components?
You
Yes — they work in static SSR. No JS at all.
Alice
Even the bubble tails?
Mask-image tails. Zero JavaScript. 🎉
<DChat Side="DaisyChatSide.Start" Header="Alice">
    Hi! Have you tried these Blazor daisyUI components?
</DChat>
<DChat Side="DaisyChatSide.End" Header="You" Color="DaisyColor.Primary">
    Yes — they work in static SSR. No JS at all.
</DChat>
<DChat Side="DaisyChatSide.Start" Header="Alice" Color="DaisyColor.Secondary">
    Even the bubble tails?
</DChat>
<DChat Side="DaisyChatSide.End" Color="DaisyColor.Success">
    Mask-image tails. Zero JavaScript. 🎉
</DChat>
Avatars, headers & footers
Bob's avatar
Bob

Ship it on Friday?

Your avatar
Only if CI is green.
Deploy bot
build #2411 failed: NU1101 — check package sources.
<DChat Header="Bob" ImageSrc="https://picsum.photos/id/64/80/80" ImageAlt="Bob's avatar">
    <p>Ship it on Friday?</p>
    <time class="text-xs opacity-50">18:02</time>
</DChat>
<DChat Side="DaisyChatSide.End" Color="DaisyColor.Info"
       Footer="Delivered" ImageSrc="https://picsum.photos/id/65/80/80" ImageAlt="Your avatar">
    Only if CI is green.
</DChat>
<DChat Side="DaisyChatSide.Start" Color="DaisyColor.Warning" Header="Deploy bot">
    build <code>#2411</code> failed: <c>NU1101</c> — check package sources.
</DChat>
Rich bubble content
typing…
<DChat Side="DaisyChatSide.End" Color="DaisyColor.Primary">
    <div class="flex items-center gap-3">
        <DLoading Type="DaisyLoadingType.Dots" Class="text-primary-content" />
        <span>typing…</span>
    </div>
</DChat>
<DChat Side="DaisyChatSide.Start">
    <div class="flex gap-2 flex-wrap">
        <button class="btn btn-xs btn-primary">Approve</button>
        <button class="btn btn-xs btn-ghost">Details</button>
    </div>
</DChat>

API

DChat

Parameters

Name Type Default Binding Description
Side DaisyChatSide Start — Which side of the conversation this message is on.
StartEnd
Color DaisyColor Default — Color of the bubble (emits chat-bubble-* ; Default leaves it neutral).
DefaultPrimarySecondaryAccentInfoSuccessWarningErrorGhostNeutral
Header string — — Small text above the bubble (e.g. the sender's name).
HeaderContent RenderFragment — — Markup above the bubble; rendered after Header .
Footer string — — Small text below the bubble (e.g. "seen").
FooterContent RenderFragment — — Markup below the bubble; rendered after Footer .
ImageSrc string — — Avatar image URL shown next to the bubble.
ImageAlt string — — Alt text for ImageSrc .
ImageClass string — — Classes for the avatar image; defaults to w-10 rounded-full .
ChildContent RenderFragment — — The bubble content.
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
DLoading

Parameters

Name Type Default Binding Description
Type DaisyLoadingType Spinner — Spinner animation ( loading-spinner , loading-dots , ...). Default: Spinner .
SpinnerDotsRingBallBarsInfinity
Size DaisySize Medium — Spinner size ( loading-xs ... loading-lg ).
ExtraSmallSmallMediumLargeExtraLarge
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
Connection lost — reconnecting…
Connection failed.
The server has stopped.