storybook/examples/ember-cli/stories/addon-actions.stories.js
2020-06-16 21:14:10 +08:00

19 lines
380 B
JavaScript

import { hbs } from 'ember-cli-htmlbars';
import { action } from '@storybook/addon-actions';
export default {
title: 'Addon/Actions',
parameters: {
options: {
selectedPanel: 'storybook/actions/panel',
},
},
};
export const Button = () => ({
template: hbs`<button {{action onClick}}>Click Me</button>`,
context: {
onClick: action('clicked'),
},
});