zent
Version:
一套前端设计语言和基于React的实现
22 lines (14 loc) • 688 B
Markdown
title: DropdownNav
path: component/dropdown-nav
group: Navigation
## DropdownNav
DropdownNav is used for accept links
It can only be used under specific circumstances. If the use conditions are not met, it can be encapsulated by Dropdown.
### API
| Props | Description | Type | Default |
| ------------ | ----------------------------- | ------ | -------- |
| trigger | trigger type | `hover` `click` | `hover` |
| list | array of nav | `Array<{key: string, label: string}>` | `[]` |
| onItemClick | Item click callback | `(event, key) => void` | `noop` |