iconreact.stories.tsx 623 B

123456789101112131415161718192021222324
  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 = () => <DefaultIconReact name={'build'} />;
  15. export const html5Icon = () => (
  16. <div className={'foobar'}>
  17. <DefaultIconReact name={'html5'} kind={'launcherSection'} center={true} />
  18. </div>
  19. );