@* Styleguide: every Navigation component (Components/Daisy/Navigation) with its main variants. Demo links point at the
daisyUI docs and open in a new tab, so clicking one never leaves this page. *@
DBreadcrumbs
Home
Components
Breadcrumbs
max-w-xs: the list scrolls
Long text 1
Long text 2
Long text 3
Long text 4
Long text 5
DDock
class="relative" keeps it in the flow; click to move the active item
@foreach (var size in new[] { DSize.Xs, DSize.Sm, DSize.Md, DSize.Lg, DSize.Xl })
{
}
DLink
Default
@foreach (var color in colors)
{
@color
}
Underline on hover
Button link, clicked @linkClicks times
DMegamenu
Below sm it collapses behind the Menu button
Apps
Messenger
Gallery
Shop
Custom content, and an item without the arrow.
PanelWidth Wide, Size Sm
First
Second
Third
A wide panel spans the whole megamenu.
DMenu
Title
Home
Inbox 3
Docs (link)
Disabled
Submenu (@(submenuOpen ? "open" : "closed"))
Child 1
Grandchild
Paged
Item
Account
Privacy
Horizontal
Active
Close me
Other
@foreach (var size in new[] { DSize.Xs, DSize.Sm, DSize.Lg, DSize.Xl })
{
@size
Item
}
DNavbar
decePub
Home
About
Start + End
Center hidden below sm
Action
DPagination
Page @currentPage of 20
DSteps
Register
Choose plan
Purchase
Receive
Back
Next
@for (var i = 0; i < 4; i++)
{
Step @(i + 1)
}
@foreach (var color in colors)
{
@color
}
Marker ?
Marker !
Marker ✕
Icon
Icon
Icon
DTabs
@foreach (var variant in new[] { DTabsVariant.Default, DTabsVariant.Box, DTabsVariant.Border, DTabsVariant.Lift })
{
@variant tab 1 content
@variant tab 2 content
Never shown
}
@code {
static readonly DColor[] colors =
{
DColor.Neutral, DColor.Primary, DColor.Secondary, DColor.Accent, DColor.Info, DColor.Success, DColor.Warning, DColor.Error
};
int dockActive;
int linkClicks;
int menuActive;
bool submenuOpen = true;
bool horizontalSubmenuOpen;
int currentPage = 7;
int smallPage = 2;
int largePage = 1;
int verticalPage = 1;
int stepsDone = 1;
int tabActive;
}