Navbar, Footer & theme
DNavbar and DFooter wrap the daisyUI navbar and
footer structures. The app itself is built with DNavbar — switch
the theme in the top-right corner to see daisyUI's CSS-variable theming at work.
DNavbar in action
<DNavbar Brand="MyApp" Class="bg-base-300 rounded-box">
<Start>
<a class="btn btn-ghost btn-sm" href="/">Home</a>
<a class="btn btn-ghost btn-sm" href="/components/cards">Cards</a>
</Start>
<End>
<DBadge Color="DaisyColor.Info">v3</DBadge>
<DAvatar Src="https://i.pravatar.cc/40" SizeClass="w-8" Shape="DaisyAvatarShape.Circle" />
</End>
</DNavbar>DFooter (footer-center)
<DFooter Center="true" Class="bg-base-300 rounded-box p-8">
<div>
<span class="footer-title">Product</span>
<a class="link link-hover">Features</a>
<a class="link link-hover">Pricing</a>
</div>
<div>
<span class="footer-title">Company</span>
<a class="link link-hover">About</a>
<a class="link link-hover">Contact</a>
</div>
<aside>
<p>Made with DaisyBlazorUI + daisyUI</p>
</aside>
</DFooter>DFooter (grid layout)
<DFooter Class="bg-base-200 rounded-box p-8">
<nav>
<h6 class="footer-title">Solutions</h6>
<a class="link link-hover">Marketing</a>
<a class="link link-hover">Commerce</a>
</nav>
<nav>
<h6 class="footer-title">Support</h6>
<a class="link link-hover">Docs</a>
<a class="link link-hover">Status</a>
</nav>
</DFooter>API
DNavbar
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Brand | string | — | — | Brand text rendered as a ghost button (daisyUI navbar convention). |
| BrandContent | RenderFragment | — | — | Custom brand markup; takes precedence over Brand . |
| Start | RenderFragment | — | — | Items placed on the left side, after the brand (inside .flex-1). |
| End | RenderFragment | — | — | Items placed on the right side (inside .flex-none). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
DFooter
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| ChildContent | RenderFragment | — | — | Footer content; typically one or more <nav>/<aside> grids. |
| Center | bool | False | — | Centers all footer content (daisyUI footer-center). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |
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. |
DAvatar
Parameters
| Name | Type | Default | Binding | Description |
|---|---|---|---|---|
| Src | string | — | — | Image URL. When empty, the avatar renders in placeholder mode using the Placeholder content. |
| Alt | string | — | — | The alt attribute of the rendered <img> . |
| SizeClass | string | w-12 | — | Tailwind width/size utility for the inner element, e.g. w-24 . |
| Shape | DaisyAvatarShape | Squircle | — | Corner shape of the avatar ( rounded-box , rounded-full , or square). SquareSquircleCircle |
| Status | DaisyStatus | None | — | Online/offline indicator rendered by daisyUI. NoneOnlineOffline |
| Placeholder | RenderFragment | — | — | Content shown when Src is not set (initials, icon, ...). |
| Class | string | — | — | Additional CSS classes appended to the component's computed daisyUI classes. |
| Style | string | — | — | Inline styles applied to the root element. |