storybook/examples/ember-cli/stories/addon-links.stories.js

18 lines
370 B
JavaScript

import hbs from 'htmlbars-inline-precompile';
import { linkTo } from '@storybook/addon-links';
export default {
title: 'Addon/Links',
};
export const goToWelcome = () => ({
template: hbs`<button {{action onClick}}>This button brings you to welcome</button>`,
context: {
onClick: linkTo('Welcome'),
},
});
goToWelcome.story = {
name: 'Go to welcome',
};