---
title: Menu
desc: Menu is used to display a list of links vertically or horizontally.
layout: components
classnames:
component:
- class: menu
desc: For
tag
part:
- class: menu-title
desc: styles a - as title
- class: menu-dropdown
desc: For the collapsible
if you want to show it using JS
- class: menu-dropdown-toggle
desc: For the toggle to show/hide the menu-dropdown using JS
modifier:
- class: menu-disabled
desc: For disabling a -
- class: menu-active
desc: For the element inside
- to look active
- class: menu-focus
desc: For the element inside
- to look focused
- class: menu-dropdown-show
desc: Shows the menu-dropdown-toggle and menu-dropdown collapsible submenu using JS
size:
- class: menu-xs
desc: Extra small size
- class: menu-sm
desc: Small size
- class: menu-md
desc: Medium size
default: true
- class: menu-lg
desc: Large size
- class: menu-xl
desc: Extra large size
direction:
- class: menu-vertical
desc: Vertical menu (default)
- class: menu-horizontal
desc: Horizontal menu
---
### ~Menu
```html
```
### ~Responsive: vertical on small screen, horizontal on large screen
```html
```
### ~Menu with icon only
```html
```
### ~Menu with icon only (horizontal)
```html
```
### ~Menu with icon only with tooltip
```html
```
### ~Menu with icon only (horizontal) with tooltip
```html
```
### ~Menu sizes
```html
```
### ~Menu with disabled items
```html
```
### ~Menu with icons
```html
```
### ~Menu with icons and badge (responsive)
```html
```
### ~Menu without padding and border radius
```html
```
### ~Menu with title
```html
```
### ~Menu with title as a parent
```html
```
### ~Submenu
```html
```
### ~Collapsible submenu
```html
```
### ~Collapsible submenu that works with class names
#### you can open/close the submenu by adding/removing menu-dropdown-show class using JS
```html
```
### ~File tree
```html
```
### ~Menu with active item
```html
```
### ~Horizontal menu
```html
```
### ~Horizontal submenu
```html
```
### ~Mega menu with submenu (responsive)
```html
```
### ~Collapsible with submenu (responsive)
```html
```