externalLink.stories.js 432 B

12345678910111213141516
  1. import React from 'react';
  2. import {withInfo} from '@storybook/addon-info';
  3. import ExternalLink from 'app/components/links/externalLink';
  4. export default {
  5. title: 'UI/Links/ExternalLink',
  6. };
  7. export const Default = withInfo(
  8. 'A normal anchor that opens URL in a new tab accounting for \'target="_blank"\' vulns'
  9. )(() => <ExternalLink href="https://www.sentry.io">Sentry</ExternalLink>);
  10. Default.story = {
  11. name: 'default',
  12. };