open-vault/ui/stories/chevron.stories.js
Matthew Irish 0ccc8467ec
UI ember engines (#6718)
Adds replication engine and core in-repo addon
2019-05-13 14:05:25 -05:00

22 lines
600 B
JavaScript

/* eslint-disable import/extensions */
import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import { withKnobs, select } from '@storybook/addon-knobs';
import notes from './chevron.md';
storiesOf('Chevron/', module)
.addParameters({ options: { showPanel: true } })
.addDecorator(withKnobs())
.add(`Chevron`, () => ({
template: hbs`
<h5 class="title is-5">Chevron</h5>
<Chevron @direction={{direction}} />
`,
context: {
direction: select('Direction', ['right', 'down', 'left', 'up'], 'right'),
},
}),
{notes}
);