storybook/code/examples/ember-cli/stories/addon-actions.stories.js
Norbert de Langen c2bbe43d02
stage0
2022-07-21 11:24:07 +02: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'),
},
});