placeholder.stories.js 755 B

12345678910111213141516171819202122232425262728293031
  1. import React from 'react';
  2. import Placeholder from 'app/components/placeholder';
  3. export default {
  4. title: 'UI/Loaders/Placeholder',
  5. component: Placeholder,
  6. args: {
  7. width: '200px',
  8. height: '200px',
  9. bottomGutter: 2,
  10. },
  11. };
  12. export const Default = ({bottomGutter, height, width}) => (
  13. <div>
  14. <h4>Resizable square</h4>
  15. <Placeholder width={width} height={height} />
  16. <p>Content below the placeholder</p>
  17. <h4>Square with bottom gutter</h4>
  18. <Placeholder height={height} bottomGutter={bottomGutter} />
  19. <p>Content below the placeholder</p>
  20. <h4>Round placeholder</h4>
  21. <Placeholder width="48px" height="48px" shape="circle" />
  22. <p>Content below the placeholder</p>
  23. </div>
  24. );
  25. Default.storyName = 'default';