mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 15:31:16 +08:00
17 lines
427 B
JavaScript
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'),
|
|
},
|
|
}));
|