fbredius/storybook

View on GitHub
examples/angular-cli/src/stories/addons/links/addon-links.stories.ts

Summary

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

export default {
  component: Button,
  title: 'Addons/Links',
};

export const ButtonWithLinkToAnotherStory = () => ({
  props: {
    text: 'Go to Welcome Story',
    onClick: linkTo('Welcome'),
  },
});

ButtonWithLinkToAnotherStory.storyName = 'button with link to another story';