mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:21:07 +08:00
19 lines
417 B
JavaScript
19 lines
417 B
JavaScript
import React from 'react';
|
|
import { hrefTo } from '@storybook/addon-links';
|
|
import { action } from '@storybook/addon-actions';
|
|
|
|
export default {
|
|
title: 'Addons/Links/Href',
|
|
};
|
|
|
|
export const Log = () => {
|
|
hrefTo('Addons/Links/Href', 'log').then((href) => action('URL of this story')(href));
|
|
|
|
return <span>See action logger</span>;
|
|
};
|
|
Log.parameters = {
|
|
options: {
|
|
panel: 'storybook/actions/panel',
|
|
},
|
|
};
|