highlight.stories.js 472 B

123456789101112131415161718192021222324
  1. import React from 'react';
  2. import Highlight, {HighlightComponent} from 'app/components/highlight';
  3. export default {
  4. title: 'Utilities/Highlight',
  5. component: HighlightComponent,
  6. args: {
  7. text: 'ILL',
  8. },
  9. argTypes: {
  10. children: {
  11. table: {
  12. disable: true,
  13. },
  14. },
  15. },
  16. };
  17. export const HighlightASubstring = ({...args}) => (
  18. <Highlight {...args}>billy@sentry.io</Highlight>
  19. );
  20. HighlightASubstring.storyName = 'Highlight a substring';