mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:21:07 +08:00
19 lines
406 B
TypeScript
19 lines
406 B
TypeScript
import React from 'react';
|
|
import { linkTo } from '@storybook/addon-links';
|
|
|
|
export default {
|
|
title: 'Addons/Links/Button',
|
|
};
|
|
|
|
export const First = () => (
|
|
<button type="button" onClick={linkTo('Addons/Links/Button', 'Second')}>
|
|
Go to "Second"
|
|
</button>
|
|
);
|
|
|
|
export const Second = () => (
|
|
<button type="button" onClick={linkTo('Addons/Links/Button', 'First')}>
|
|
Go to "First"
|
|
</button>
|
|
);
|