textOverflow.stories.js 479 B

12345678910111213141516
  1. import React from 'react';
  2. import {storiesOf} from '@storybook/react';
  3. import {withInfo} from '@storybook/addon-info';
  4. import TextOverflow from 'app/components/textOverflow';
  5. storiesOf('Style|Text', module).add(
  6. 'TextOverflow',
  7. withInfo(
  8. 'Simple component that adds "text-overflow: ellipsis" and "overflow: hidden", still depends on container styles'
  9. )(() => (
  10. <div style={{width: 50}}>
  11. <TextOverflow>AReallyLongTextString</TextOverflow>
  12. </div>
  13. ))
  14. );