0ccc8467ec
Adds replication engine and core in-repo addon
24 lines
936 B
Markdown
24 lines
936 B
Markdown
<!--THIS FILE IS AUTO GENERATED. This file is generated from JSDoc comments in lib/core/addon/components/popup-menu.js. To make changes, first edit that file and run "yarn gen-story-md popup-menu" to re-generate the content.-->
|
|
|
|
## PopupMenu
|
|
`PopupMenu` displays a button that when pressed will toggle open a menu that is yielded in the content
|
|
block.
|
|
|
|
|
|
| Param | Type | Default | Description |
|
|
| --- | --- | --- | --- |
|
|
| contentClass | <code>String</code> | <code>''</code> | A class that will be applied to the yielded content of the popup. |
|
|
|
|
**Example**
|
|
|
|
```js
|
|
<PopupMenu><nav class="menu"> <ul class="menu-list"> <li class="action"> <button type="button">A menu!</button> </li> </ul> </nav></PopupMenu>
|
|
```
|
|
|
|
**See**
|
|
|
|
- [Uses of PopupMenu](https://github.com/hashicorp/vault/search?l=Handlebars&q=PopupMenu)
|
|
- [PopupMenu Source Code](https://github.com/hashicorp/vault/blob/master/ui/app/components/popup-menu.js)
|
|
|
|
---
|