HxNav

Bootstrap Nav component.

Base nav

Vertical

Tabs

The raw implementation requires you to set the active class on your own (the Match behavior on Href might help).

See HxTabPanel for more sophisticated implementation.

Pills

Dropdowns

API

Parameters

Name Type Description
Orientation NavOrientation Orientation of the nav. Default is NavOrientation.Horizontal.
Variant NavVariant The visual variant of the nav items. Default is NavVariant.Standard.
Id string ID of the nav which can be used for HxScrollspy.TargetId.
CssClass string Additional CSS class.
ChildContent RenderFragment Content of the nav.

HxNavLink

Bootstrap nav-link component.

API

Parameters

Name Type Description
Href string Navigation target.
Text string Text of the item.
Match NavLinkMatch? URL matching behavior for the underlying NavLink. Default is NavLinkMatch.Prefix. You can set the value to null to disable the matching.
CssClass string Additional CSS class.
Enabled bool?
ChildContent RenderFragment Content.
AdditionalAttributes Dictionary<string, object> Additional attributes to be splatted onto an underlying NavLink component.

Event Callbacks

Name Type Description
OnClick EventCallback<MouseEventArgs> Raised when the item is clicked.
An unhandled error has occurred. Reload 🗙