Lumeo

Sidebar

A collapsible sidebar layout with groups, menus, header, and footer. Supports Push, Overlay, and Icon variants.

Installation

dotnet add package Lumeo

One-time app setup (AddLumeo(), CSS & JS) is covered in the installation guide.

Usage

@using Lumeo

<Sidebar />

When to Use

  • Application-level navigation with collapsible menu groups
  • Admin panels and dashboard layouts with persistent navigation
  • Multi-section apps that need icon-only, push, or overlay sidebar variants
  • Any layout requiring a collapsible side panel with header, content, and footer areas

Sidebar pushes the main content. Fully hidden when collapsed.

Sidebar slides over the main content. Click the backdrop to dismiss.

Pick a value to see it applied live.

Sidebar appears on the left.

Compact icon-only sidebar. Toggle to expand with labels.

Hover the rail to expand. Click toggle to pin open.

API Reference

SidebarProvider

Prop Type Default Description
ChildContentRenderFragment?nullThe sidebar and main content.
IsCollapsedboolfalseControls the sidebar collapsed state. Use with @bind-IsCollapsed.
IsCollapsedChangedEventCallback<bool>-Callback invoked when the collapsed state changes.
VariantSidebarVariantPushSidebar display mode. Values: Push, Overlay, Icon.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

SidebarComponent

Prop Type Default Description
ChildContentRenderFragment?nullThe sidebar content (header, content, footer).
SideLumeo.SideLeftWhich side the sidebar appears on. Values: Left, Right.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.

SidebarMenuButton

Prop Type Default Description
ChildContentRenderFragment?nullFallback content when Icon/Label are not used.
IconContentRenderFragment?nullIcon slot rendered at the start of the button.
LabelContentRenderFragment?nullLabel slot hidden when sidebar is collapsed.
Hrefstring?nullNavigation URL. Renders as an anchor when set.
Tooltipstring?nullTooltip text shown when the sidebar is collapsed.
IsActiveboolfalseHighlights the button as the active/current item.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes.
Prop Type Default Description
ChildContentRenderFragment?nullThe component content. All layout sub-components accept ChildContent.
BorderedbooltrueSidebarHeader / SidebarFooter only. When false, drops the divider rule (bottom/top border) so the section flows seamlessly into the content.
Classstring?nullAdditional CSS classes.
AdditionalAttributesDictionary<string, object>?nullAdditional HTML attributes. SidebarTrigger toggles collapsed state. SidebarGroupLabel hides text when collapsed. SidebarSeparator has no ChildContent.
  • NavigationMenu — Horizontal navigation bar for top-level page links
  • Sheet — Slide-in overlay panel for temporary content or actions
  • Drawer — Bottom or side drawer for mobile-friendly navigation