mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
13 lines
422 B
JavaScript
13 lines
422 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: { selectedAddonPanel: 'storybook/actions/actions-panel' } })
|
|
.add('button', () => ({
|
|
template: hbs`<button {{action onClick}}>Click Me</button>`,
|
|
context: {
|
|
onClick: action('clicked'),
|
|
},
|
|
}));
|