DBadge

Colors
Default Primary Secondary Accent Info Success Warning Error Ghost
<DBadge>Default</DBadge>
<DBadge Color="DaisyColor.Primary">Primary</DBadge>
<DBadge Color="DaisyColor.Secondary">Secondary</DBadge>
<DBadge Color="DaisyColor.Accent">Accent</DBadge>
<DBadge Color="DaisyColor.Info">Info</DBadge>
<DBadge Color="DaisyColor.Success">Success</DBadge>
<DBadge Color="DaisyColor.Warning">Warning</DBadge>
<DBadge Color="DaisyColor.Error">Error</DBadge>
<DBadge Color="DaisyColor.Ghost">Ghost</DBadge>
Variants
Solid Outline Dash Soft
<DBadge Color="DaisyColor.Primary">Solid</DBadge>
<DBadge Color="DaisyColor.Primary" Variant="DaisyVariant.Outline">Outline</DBadge>
<DBadge Color="DaisyColor.Primary" Variant="DaisyVariant.Dash">Dash</DBadge>
<DBadge Color="DaisyColor.Primary" Variant="DaisyVariant.Soft">Soft</DBadge>
Sizes
xs Small Medium Large Extra large
<DBadge Color="DaisyColor.Secondary" Size="DaisySize.ExtraSmall">xs</DBadge>
<DBadge Color="DaisyColor.Secondary" Size="DaisySize.Small">Small</DBadge>
<DBadge Color="DaisyColor.Secondary">Medium</DBadge>
<DBadge Color="DaisyColor.Secondary" Size="DaisySize.Large">Large</DBadge>
<DBadge Color="DaisyColor.Secondary" Size="DaisySize.ExtraLarge">Extra large</DBadge>
Shapes
Default Rect Circle
<DBadge Color="DaisyColor.Info" Shape="DaisyShape.Default">Default</DBadge>
<DBadge Color="DaisyColor.Info" Shape="DaisyShape.Rect">Rect</DBadge>
<DBadge Color="DaisyColor.Info" Shape="DaisyShape.Circle">Circle</DBadge>
With icons
Verified Unstable Dismiss CDN icon
<DBadge Color="DaisyColor.Success" IconStart="@DaisyIcons.Success">Verified</DBadge>
<DBadge Color="DaisyColor.Warning" IconStart="@DaisyIcons.Warning">Unstable</DBadge>
<DBadge Color="DaisyColor.Info" IconEnd="@DaisyIcons.XMark">Dismiss</DBadge>
<DBadge IconStart="@DaisyIcon.FromUrl("zap", "https://api.iconify.design/lucide/zap.svg")">CDN icon</DBadge>
DStatus— status dots: semantic colors, sizes xs–xl. Combine with text, or stack two (one with Tailwind animate-ping) for a live-pulse effect.
Online Server is down (ping)
<DStatus Color="DaisyColor.Success" />
<DStatus Color="DaisyColor.Error" />
<DStatus Color="DaisyColor.Warning" Size="DaisyStatusSize.Large" />
<DStatus Color="DaisyColor.Info" Size="DaisyStatusSize.ExtraLarge" />
<span class="inline-flex items-center gap-2"><DStatus Color="DaisyColor.Success" /> Online</span>
<span class="inline-grid *:[grid-area:1/1]">
    <DStatus Color="DaisyColor.Error" Class="animate-ping" />
    <DStatus Color="DaisyColor.Error" />
</span>
<span class="opacity-70">Server is down (ping)</span>
DIndicator— indicator pins anything (status dot, badge, text) to a corner of its content — CSS-only, positions via indicator-top|middle|bottom + indicator-start|center|end.
status
New
bottom-start
12
3D
<DIndicator>
    <Item><DStatus Color="DaisyColor.Success" /></Item>
    <ChildContent><div class="bg-base-300 grid h-24 w-24 rounded-box place-items-center">status</div></ChildContent>
</DIndicator>
<DIndicator Position="DaisyIndicatorPosition.BottomStart">
    <Item><span class="badge badge-primary">New</span></Item>
    <ChildContent><div class="bg-base-300 grid h-24 w-24 rounded-box place-items-center">bottom-start</div></ChildContent>
</DIndicator>
<DIndicator Position="DaisyIndicatorPosition.MiddleCenter">
    <Item><span class="badge badge-error badge-lg">12</span></Item>
    <ChildContent><button class="btn">inbox</button></ChildContent>
</DIndicator>
<DIndicator Position="DaisyIndicatorPosition.TopStart">
    <Item><span class="badge badge-success badge-sm">3</span></Item>
    <ChildContent><span class="avatar placeholder">
        <span class="bg-primary text-primary-content w-16 rounded-full"><span>D</span></span>
    </span></ChildContent>
</DIndicator>

API

DBadge

Parameters

Name Type Default Binding Description
Color DaisyColor Default — Contextual color (e.g. badge-primary , badge-ghost ); Default emits no class.
DefaultPrimarySecondaryAccentInfoSuccessWarningErrorGhostNeutral
Variant DaisyVariant Default — Style variant (e.g. badge-outline ); Default emits no class.
DefaultOutlineDashSoftLink
Size DaisySize Medium — Size (e.g. badge-xs , badge-lg ); Medium emits no class.
ExtraSmallSmallMediumLargeExtraLarge
Shape DaisyShape Default — Corner shape ( badge-circle , badge-rect ); Default emits no class.
DefaultCircleRect
IconStart DaisyIcon — — Icon rendered before the badge content.
IconEnd DaisyIcon — — Icon rendered after the badge content.
IconSize DaisySize? — — Icon size; defaults to the badge Size when null .
ExtraSmallSmallMediumLargeExtraLarge
ChildContent RenderFragment — — The badge's inner text and content.
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
DStatus

Parameters

Name Type Default Binding Description
Color DaisyColor Default — Semantic color of the dot ( status-primary , status-error , ...).
DefaultPrimarySecondaryAccentInfoSuccessWarningErrorGhostNeutral
Size DaisyStatusSize Default — Dot size ( status-xs ... status-xl ).
DefaultXSmallSmallMediumLargeExtraLarge
Label string — — Accessible label (rendered as aria-label ).
Class string — — Additional CSS classes appended to the component's computed daisyUI classes.
Style string — — Inline styles applied to the root element.
DIndicator

Parameters

Name Type Default Binding Description
ChildContent RenderFragment — — The content the indicator is attached to (button, avatar, box, ...).
Item RenderFragment — — The indicator itself (a DStatus dot, a badge , text ...). Rendered inside the absolutely positioned indicator-item element.
Position DaisyIndicatorPosition Default — Corner where the item is placed (daisy default: top inline-end).
DefaultTopStartTopCenterTopEndMiddleStartMiddleCenterMiddleEndBottomStartBottomCenterBottomEnd
ItemClass string — — Extra classes added to the indicator-item element.
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.