@gechiui/components
Version:
UI components for GeChiUI.
24 lines (20 loc) • 478 B
JavaScript
/**
* External dependencies
*/
import { text } from '@storybook/addon-knobs';
/**
* Internal dependencies
*/
import ExternalLink from '../';
export default {
title: 'Components/ExternalLink',
component: ExternalLink,
parameters: {
knobs: { disabled: false },
},
};
export const _default = () => {
const title = text( 'children', 'GeChiUI' );
const href = text( 'href', 'https://www.gechiui.com' );
return <ExternalLink href={ href }>{ title }</ExternalLink>;
};