open-vault/ui/stories/popup-menu.stories.js
Matthew Irish 20a9cd7a1e
UI - add wormhole div for ember-basic-dropdown (#6760)
* add wormhole div for ember-basic-dropdown

* add content to the PopupMenu story
2019-05-20 14:19:50 -05:00

28 lines
713 B
JavaScript

/* eslint-disable import/extensions */
import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import notes from './popup-menu.md';
storiesOf('PopupMenu/', module)
.addParameters({ options: { showPanel: true } })
.add(`PopupMenu`, () => ({
template: hbs`
<h5 class="title is-5">Popup Menu</h5>
<PopupMenu>
<nav class="menu">
<ul class="menu-list">
<li class="action">
<button type="button" class="button link">
Popup content goes here!
</button>
</li>
</ul>
</nav>
</PopupMenu>
`,
context: {},
}),
{notes}
);