storybook/examples/ember-cli/stories/addon-actions.stories.js
Norbert de Langen a9ee8a5dad
Merge branch 'next' into tech/overhaul-ui
# Conflicts:
#	.babelrc.js
#	addons/a11y/package.json
#	addons/actions/package.json
#	addons/backgrounds/package.json
#	addons/cssresources/package.json
#	addons/events/package.json
#	addons/graphql/package.json
#	addons/info/package.json
#	addons/info/src/components/PropTable.js
#	addons/jest/package.json
#	addons/knobs/package.json
#	addons/links/package.json
#	addons/notes/package.json
#	addons/ondevice-backgrounds/package.json
#	addons/options/package.json
#	addons/storyshots/storyshots-core/package.json
#	addons/storyshots/storyshots-puppeteer/package.json
#	addons/storysource/package.json
#	app/angular/package.json
#	app/ember/package.json
#	app/html/package.json
#	app/marko/package.json
#	app/mithril/package.json
#	app/polymer/package.json
#	app/react/package.json
#	app/riot/package.json
#	app/svelte/package.json
#	app/vue/package.json
#	examples/official-storybook/stories/addon-a11y.stories.js
#	examples/official-storybook/stories/addon-actions.stories.js
#	lib/addons/package.json
#	lib/channel-postmessage/package.json
#	lib/channel-websocket/package.json
#	lib/components/package.json
#	lib/components/src/layout/mobile.js
#	lib/core/package.json
#	lib/core/src/server/common/babel.js
#	lib/ui/package.json
#	lib/ui/src/modules/ui/components/stories_panel/index.js
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/index.test.js
#	lib/ui/src/modules/ui/components/stories_panel/stories_tree/tree_decorators_utils.js
#	lib/ui/src/modules/ui/components/stories_panel/text_filter.js
#	yarn.lock
2018-12-06 16:49:52 +01:00

13 lines
414 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/panel' } })
.add('button', () => ({
template: hbs`<button {{action onClick}}>Click Me</button>`,
context: {
onClick: action('clicked'),
},
}));