mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 05:41:06 +08:00
# 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
13 lines
414 B
JavaScript
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'),
|
|
},
|
|
}));
|