labicon-sizes.stories.tsx 696 B

123456789101112131415161718192021
  1. /**
  2. * Example story for styling an icon's size.
  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 { clearIcon } 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 sizing'
  13. };
  14. export const clearSmall = () => <clearIcon.react elementSize="small" />;
  15. export const clearNormal = () => <clearIcon.react elementSize="normal" />;
  16. export const clearLarge = () => <clearIcon.react elementSize="large" />;
  17. export const clearXlarge = () => <clearIcon.react elementSize="xlarge" />;