fbredius/storybook

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

Summary

Maintainability
A
0 mins
Test Coverage
/** @jsx h */

import { h } from 'preact';

import { linkTo } from '@storybook/addon-links';

import Button from '../Button';

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

export const GoToWelcome = () => (
  <Button onclick={linkTo('Welcome')}>This button links to Welcome</Button>
);

GoToWelcome.storyName = 'Go to welcome';