Menu

Navigation components that provide a responsive and flexible structure for top-level app navigation, including support for dropdown submenus and various layouts (desktop top, sidebar, bottom tab).

When To Use

Navigation menu is important for a website, it helps users jump from one site section to another quickly. Mostly, it includes top navigation and side navigation. Top navigation provides all the category and functions of the website. Side navigation provides the multi-level structure of the website.

Desktop Top Navigation

A classic top navigation bar suitable for desktop layouts, utilizing the `desktopTop` variant.

Sidebar Navigation

A vertical navigation structure typically used in dashboards.

Mobile Top Navigation

A top navigation bar specifically designed for mobile layouts.

Mobile Content

Bottom Tab Navigation

Commonly used in mobile applications, placing navigation elements at the bottom of the screen.

API Reference

Property
Description
Type
Default

variant

The layout variant of the navigation bar. 'bottomTab' | 'mobileTop' | 'desktopSide' | 'desktopTop' 'bottomTab'

class

Additional CSS classes to apply to the Menu. string -
Property
Description
Type
Default

variant

The styling variant of the navigation item. 'sidebar' | 'sidebarActive' | 'bottomTab' | 'bottomTabActive' | 'desktopTop' | 'desktopTopActive' 'sidebar'

label

The text label for the navigation item. string -

href

The URL the item links to. string -

icon

The name of the Lucide icon to display. IconName -

showChevron

Whether to show a chevron icon when a submenu is present. boolean true

disabled

Whether the item is disabled. boolean false

nested

Whether this menu item is nested inside another menu item, adjusting its submenu placement. boolean false

class

Additional CSS classes to apply to the NavItem. string -