Skip to content

AisNav ​

A navigation component which wraps a collection of AisNavItem and/or AisMenu components.

AisNavItem is a component for actionable links or plain text content and has the following props:

  • label the text to be displayed for the nav item
  • href the external URL
  • to the destination when using vue-router's RouterLink or Nuxt's NuxtLink
  • icon the icon to display on the left side of the nav item

Note: If neither href nor to props are provided, the nav item will be plain text and will emit a click event when clicked. This can be useful if you'd rather trigger a modal, for example, rather than navigate to a new page

Example Usages ​

Using Default Slot ​

Using Items Prop ​