Skip to main content
Version: 2.0

Frontend - Menu - Overview

The menu package that comes with Parthenon is designed to help you quickly build a powerful and easy to use menu.

Components

  • Menu
  • MenuGroup
  • MenuItem

Props

NameTypeDefault ValueDescription
list-classString or Objectmenu-listThe class that is provided to the ul list

Example

<Menu>
<!-- ... Contents of Menu --->
</Menu>

Output

<div>
<ul class="menu-list">
<!-- ... Contents of Menu -->
</ul>
</div>

Props

NameTypeRequiredDefault ValueDescription
nameStringtruen/a
title-classString or Objectfalsemenu-group-titleThe class that is provided to the div containing the title for the group
list-classString or Objectfalsemenu-group-listThe class that is provided to the ul list

Example

<MenuGroup name="Section">
<!-- ... Contents of Menu --->
</MenuGroup>

Output

<li>
<div class="menu-group-title">Section</div>
<ul class="menu-group-list">
<!-- ... Contents of Menu -->
</ul>
</li>

Props

NameTypeRequiredDefault ValueDescription
route-nameStringtruen/aThe name of the vue route the link is for.
route-optionsObjectfalse{}The route options.
link-classString or Objectfalsemenu-linkThe class that is provided to the link
item-classString or Objectfalsemenu-itemThe class that is provided to the link

Example

<MenuItem route-name="app.home">Home</MenuItem>

Output

<li class="menu-item">
<a aria-current="page" href="/app/home" class="router-link-active router-link-exact-active menu-link">Home</a>
</li>