19 lines
350 B
JavaScript
19 lines
350 B
JavaScript
import { linkTo } from '@storybook/addon-links';
|
|
|
|
import Welcome from './Welcome';
|
|
|
|
export default {
|
|
title: 'Welcome',
|
|
component: Welcome,
|
|
};
|
|
|
|
export const ToStorybook = () => ({
|
|
components: { Welcome },
|
|
template: '<welcome :showApp="action" />',
|
|
methods: { action: linkTo('Button') },
|
|
});
|
|
|
|
ToStorybook.story = {
|
|
name: 'to Storybook',
|
|
};
|