iconreact.stories.tsx 780 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * Example story for styling an icon.
  3. */
  4. // need this to avoid
  5. // TS2686: 'React' refers to a UMD global, but the current file is a module.
  6. import React from 'react';
  7. import { DefaultIconReact } from '../src';
  8. import '@jupyterlab/application/style/index.css';
  9. import '@jupyterlab/theme-light-extension/style/index.css';
  10. export default {
  11. component: DefaultIconReact,
  12. title: 'IconReact'
  13. };
  14. export const buildIcon = () => (
  15. <DefaultIconReact name={'build'} kind={'sideBar'} />
  16. );
  17. export const runningIcon = () => (
  18. <DefaultIconReact name={'running'} height={'800px'} width={'800px'} />
  19. );
  20. export const html5Icon = () => (
  21. <div className={'foobar'} style={{ height: '500px', width: '500px' }}>
  22. <DefaultIconReact name={'html5'} justify="center" />
  23. </div>
  24. );