highlight.stories.js 396 B

12345678910111213141516
  1. import React from 'react';
  2. import {withInfo} from '@storybook/addon-info';
  3. import Highlight from 'app/components/highlight';
  4. export default {
  5. title: 'Utility/Highlight',
  6. };
  7. export const HighlightASubstring = withInfo(
  8. 'Highlights a string within another string'
  9. )(() => <Highlight text="ILL">billy@sentry.io</Highlight>);
  10. HighlightASubstring.story = {
  11. name: 'Highlight a substring',
  12. };