Navigation

Menu

The menu component presents a vertical or horizontal list of links for easy navigation within the application or website.

Basic example

Default

Below example shows default menu component.

Variants

Icon menu

Below example shows menu with icons.

With icons only

Below example shows menu with icons only.

With icons only (horizontal)

Use the responsive class `menu-horizontal` with the component class `menu` for a horizontal menu.

With tooltip

Below example shows menu with tooltip.

With disabled items

Below example shows menu with disabled items.

With badges

Below example shows menu with badges.

With item

Below example shows menu with item.

Sizes

Basic sizes

Utilize the responsive class `menu-{size}` where `size = xs|sm|md|lg|xl` to render menus of varying sizes.

Illustrations

Simple

Below example shows simple menu without rounded borders & padding.

With title

Below example shows menu with title.

With title as parent

Below example shows menu with title as parent.

With sub-menus

Below example shows menu with sub-menus.

With horizontal sub-menu

Below example shows horizontal menu with sub-menu.

Mega menu with sub-menu

Below example shows mega menu with sub-menu.

Menu with dropdown

Below example shows menu with dropdown.

Class referenceThe component, style, color, state, size and modifier classes available for this component.
ClassTypeDescription
menucomponentBase class for menu container.
menu-titlepartBase class for menu title.
menu-disabledstateMakes menu item (`li`) disabled.
menu-activestateMakes element inside menu item (`li`) active.
menu-xssizeExtra small size.
menu-smsizeSmall size.
menu-mdsizeMedium(default) size.
menu-lgsizeLarge size.
menu-xlsizeExtra-Large size.
menu-verticaldirectionVertical menu (default).
menu-horizontaldirectionHorizontal menu.