# Menu
### Intro
The menu list that pops down downwards.
### Install
``` javascript
import { createApp } from 'vue';
// vue
import { Menu, MenuItem } from '@nutui/nutui';
// taro
import { Menu, MenuItem } from '@nutui/nutui-taro';
const app = createApp();
app.use(Menu);
```
### Basic Usage
:::demo
```html
```
:::
### Custom Menu Content
Popup can be closed with toggle method in menu instance.
:::demo
```html
```
:::
### Two Cols In One Line
:::demo
```html
```
:::
### Custom Active Color
:::demo
```html
```
:::
### Custom Icons
:::demo
```html
```
:::
### Expand Directions
:::demo
```html
```
:::
### Disable Menu
:::demo
```html
```
:::
## API
### Menu Props
| Attribute | Description | Type | Default |
|--------------|----------------------------------|--------|------------------|
| active-color | Active color of title and option | String | #F2270C |
| close-on-click-overlay `v3.1.21` | Whether to close when overlay is clicked | Boolean | true |
| scroll-fixed `v3.1.22` | Whether to fixed when window is scrolled, fixed position can be set | Boolean、String、Number | false |
| title-class `v3.1.22` | Custome title class | String | - |
| lock-scroll `v3.1.22` | Whether the background is locked | Boolean | true |
### MenuItem Props
| Attribute | Description | Type | Default |
|--------------|----------------------------------|--------|------------------|
| title | Item title | String | 当前选中项文字 |
| options | Options | Array | - |
| disabled | Whether to disable dropdown item | Boolean | false |
| cols | Display how many options in one line | Number | 1 |
| title-icon | Custome title icon | String | - |
| option-icon `v3.1.22` | Custome option icon | String | 'Check' |
| direction `v3.1.22` | Expand direction, can be set to up | String | 'down' |
### MenuItem Events
| Event | Description | Arguments |
|--------|----------------|--------------|
| change | Emitted select option changed | Selected value |