2020-07-20 14:04:24 +10:00

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',
},
};