<ui-nav-item>
Navigation item with icon and label.
Shell · stable · since 2.0.0 · extends _UIElement
Examples
<ui-nav><ui-nav-item href="/" icon="house">Home</ui-nav-item></ui-nav>
<ui-nav><ui-nav-item href="/docs" match="prefix">Docs</ui-nav-item></ui-nav>
Playground
Generated HTML
Event log
API
Attributes and properties
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
disabled | disabled | boolean | false | |
busy | data-ui-busy | boolean | false | |
href | href | string | "" | Link target. |
icon | icon | string | "" | Font Awesome icon name. |
match | match | string | "" | exact or prefix: derive active state from location. |
Methods
None.
Events
None.
Slots
(default)— Label text.