UNPKG

zent

Version:

一套前端设计语言和基于React的实现

27 lines (15 loc) 763 B
--- title: Dropdown path: component/dropdown group: Navigation --- ## Dropdown A component pops down. We don't provide a specific component called `Dropdown`. The function of `Dropdown` component is a subset of function of `Popover` component. This doc decribes how to use `Popover` to implement a `Dropdown`. ### Usage Generally, the component is used for dropdown menu. ### API Please refer [the api doc of `Popover`](popover#api). ### About position It's recommanded to use `AutoXxxYxx` provided by `Popover` for positioning. E.g. it's positioned below the lower left corner, but the position will be adjusted if it's out of the screen. Alternative ways for positioning can be refered to [the position doc of `Popover`](popover#position%20api)。