Skip to main content
Yoummday Light Light Dark System

Navigation Entry

<sl-navigation-entry> | SlNavigationEntry
Since 2.46.0 stable

Render Navigation Entry with an icon and a tooltip that gets shown conditionally.

<sl-navigation-entry icon="mdi-puzzle" label="Pandoras Box"></sl-navigation-entry>

Examples

Default

<sl-navigation-entry icon="mdi-puzzle" label="Pandoras Box"></sl-navigation-entry>

Enabled tooltip

<sl-navigation-entry icon="mdi-puzzle" label="Pandoras Box" style="--tooltip-events: auto; --label-opacity: 0"></sl-navigation-entry>

Filled slot

5
<sl-navigation-entry icon="mdi-mailbox" label="Pandoras Mailbox">
  <sl-badge variant="danger" pulse>5</sl-badge>
</sl-navigation-entry>

Importing

If you’re using the autoloader or the traditional loader, you can ignore this section. Otherwise, feel free to use any of the following snippets to cherry pick this component.

Script Import Bundler React

To import this component from the CDN using a script tag:

<script type="module" src="https://v2-48-10.yoummday-theme.pages.dev/components/navigation-entry/navigation-entry.js"></script>

To import this component from the CDN using a JavaScript import:

import 'https://v2-48-10.yoummday-theme.pages.dev/components/navigation-entry/navigation-entry.js';

To import this component using a bundler:

import '@yoummday/ymmd-shoelace/dist/components/navigation-entry/navigation-entry.js';

To import this component as a React component:

import SlNavigationEntry from '@yoummday/ymmd-shoelace/dist/react/navigation-entry';

Slots

Name Description
(default) Default slot for additional content after the label, eg badge or some indicator.

Learn more about using slots.

Properties

Name Description Reflects Type Default
icon The icon name of the navigation entry. string | undefined -
label The label of the navigation entry. string ''
updateComplete A read-only promise that resolves when the component has finished updating.

Learn more about attributes and properties.

Custom Properties

Name Description Default
--tooltip-events to enable the tooltip, ie. if collapsed. auto
--elements-spacing to manipulate the gap between icon and label, ie. if collapsed. 20px

Learn more about customizing CSS custom properties.

Parts

Name Description
base The base wrapper.

Learn more about customizing CSS parts.

Dependencies

This component automatically imports the following dependencies.

  • <sl-popup>
  • <sl-tooltip>