highlight.stories.js 435 B

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