fbredius/storybook

View on GitHub
examples/svelte-kitchen-sink/src/stories/addon-links.stories.js

Summary

Maintainability
A
0 mins
Test Coverage
import { linkTo } from '@storybook/addon-links';

import ActionLinkView from './views/ActionLinkView.svelte';

export default {
  title: 'Addon/Links',
};

export const GoToWelcomeView = () => ({
  Component: ActionLinkView,
  on: {
    click: linkTo('Welcome'),
  },
});

GoToWelcomeView.storyName = 'Go to welcome view';