labicon.stories.tsx 723 B

1234567891011121314151617181920212223242526
  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 { buildIcon, runningIcon, html5Icon } from '../src';
  8. import '@jupyterlab/application/style/index.css';
  9. import '@jupyterlab/theme-light-extension/style/index.css';
  10. export default {
  11. // component: LabIcon,
  12. title: 'LabIcon'
  13. };
  14. export const build = () => <buildIcon.react stylesheet="sideBar" />;
  15. export const running = () => <runningIcon.react height="800px" width="800px" />;
  16. export const html5 = () => (
  17. <div className="foobar" style={{ height: '500px', width: '500px' }}>
  18. <html5Icon.react elementPosition="center" />
  19. </div>
  20. );