Components

Menu

<Menu />

Constructor

This component can be used to render a menu from the menuItems in the editor. An extra class called active is applied if the menu item is the current url. By default, links will resolve via AJAX.

Items will automatically be pulled from config, please remember to expose the layout key.

Children are prepended to the list of items. Slice can be passed to extract a set of menu items.

import { Menu } from '@quintype/components';

<Menu className="menu-class" itemClassName="item-class" slice={[0, 10]}>
  <li>
    <a className="item-class" href="/"> होम </a>
  </li>
</Menu>
Deprecated:
  • Yes
See:

View Source components/menu.js, line 45