Navigation Entry
<wa-navigation-entry>
Displays an icon, label, and optional indicator inside a navigation item.
Examples
Collapsed
Set collapsed to hide the visible label and enable its tooltip. Navigation entries also inherit this state from a containing collapsed tree item.
Indicator
Place a badge or other short indicator in the end slot.
Custom spacing
Use --wa-navigation-entry-gap to change the spacing between the icon, label, and indicator.
Notes
- Navigation Entry is presentational. Place it inside an interactive navigation control such as
wa-tree-item. - The label remains available to assistive technology while visually collapsed.
API
Importing
If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.
Import this component directly from the CDN:
import 'https://cdn.yoummday.com/packages/@yoummday/webawesome/0.5.1/dist/components/navigation-entry/navigation-entry.js';
After installing Web Awesome via npm, import this component:
import '@yoummday/webawesome/dist/components/navigation-entry/navigation-entry.js';
If you're self-hosting Web Awesome, import this component from your server:
import './webawesome/dist/components/navigation-entry/navigation-entry.js';
To import this component for React 18 or below, use the following code:
import WaNavigationEntry from '@yoummday/webawesome/dist/react/navigation-entry/index.js';
Slots
Learn more about using slots.
| Name | Description |
|---|---|
end
|
A badge or other indicator displayed after the label. |
Attributes & Properties
Learn more about attributes and properties.
| Name | Description | Reflects |
|---|---|---|
collapsedcollapsed |
Hides the visible label and enables its tooltip. Inherits from a containing collapsed
wa-tree-item.
Type
boolean
Default
false
|
|
iconicon |
The name of the Web Awesome icon to display.
Type
string
Default
''
|
|
labellabel |
The navigation entry's visible label and collapsed tooltip text.
Type
string
Default
''
|
CSS Custom Properties
Learn more about CSS custom properties.
| Name | Description |
|---|---|
--wa-navigation-entry-gap |
The gap between the icon, label, and end content.
Default
var(--wa-space-2xs)
|
CSS Parts
Learn more about CSS parts.
| Name | Description | CSS selector |
|---|---|---|
end |
The end-slot container. |
::part(end)
|
icon |
The icon container. |
::part(icon)
|
label |
The label. |
::part(label)
|
navigation-entry |
The component's content container. |
::part(navigation-entry)
|
base |
An alias for the component's content container. |
::part(base)
|
Dependencies
This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.