RayCraftDocs
v1.0.3 raycraft.dev
On this page

NavMenu

Free

Vertical navigation with active-page highlighting (built on NavLink) and collapsible groups. Give NavItem a Tooltip and NavGroup an Icon when the menu is used in a Drawer with Mini: the closed drawer then shows only icons, and a group opens as a small flyout.

Example

NavMenu control

Parameters

NavMenu

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
StylestringInline style added to the root element.

NavItem

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
HrefstringLink address. On a Button it makes the button render as a link with the same look.
IconIconName?Icon to show (IconName).
MatchNavLinkMatchNavLinkMatch.Prefix (default) or All.
StylestringInline style added to the root element.
TooltipstringNative tooltip text; use it on NavItems so the icon-only rail stays understandable.

NavGroup

ParameterTypeDescription
ChildContentRenderFragmentContent rendered inside the component.
ClassstringExtra CSS classes added to the root element.
ExpandedboolWhether the item is open. Use with @bind-Expanded.
IconIconName?Icon to show (IconName).
StylestringInline style added to the root element.
TitlestringTitle text (drawer header, tab caption, column header, step caption).

Package

NavMenu is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.