storybook/examples/ember-cli/stories/addon-actions.stories.js
2018-12-29 16:15:00 +01:00

17 lines
427 B
JavaScript

import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import { action } from '@storybook/addon-actions';
storiesOf('Addon|Actions', module)
.addParameters({
options: {
selectedPanel: 'storybook/actions/panel',
},
})
.add('button', () => ({
template: hbs`<button {{action onClick}}>Click Me</button>`,
context: {
onClick: action('clicked'),
},
}));