storybook/examples/ember-cli/stories/addon-links.stories.js
2018-10-03 00:50:39 -07:00

11 lines
348 B
JavaScript

import hbs from 'htmlbars-inline-precompile';
import { storiesOf } from '@storybook/ember';
import { linkTo } from '@storybook/addon-links';
storiesOf('Addon|Links', module).add('Go to welcome', () => ({
template: hbs`<button {{action onClick}}>This button brings you to welcome</button>`,
context: {
onClick: linkTo('Welcome'),
},
}));