Skip to content

Commit

Permalink
feat: added ExternalLink stories
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 8, 2020
1 parent 3385c4f commit 3bf353c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ui/components/src/ExternalLink/ExternalLink.stories.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import React from 'react';
import { ExternalLink, ExternalLinkProps } from './ExternalLink';

export default {
title: 'Components/ExternalLink',
component: ExternalLink,
};

export const simple = ({ href }: ExternalLinkProps) => {
return <ExternalLink href={href}>{href}</ExternalLink>;
};

simple.story = {
parameters: {
addonControls: {
smart: false,
},
controls: {
href: {
type: 'text',
value: 'https://www.google.com',
data: { name: 'internet.url' },
},
},
},
};

0 comments on commit 3bf353c

Please sign in to comment.