123456789101112131415161718192021222324252627282930 |
- /**
- * Example story for styling an icon.
- */
- // need this to avoid
- // TS2686: 'React' refers to a UMD global, but the current file is a module.
- import React from 'react';
- import { DefaultIconReact } from '../src';
- import '@jupyterlab/application/style/index.css';
- import '@jupyterlab/theme-light-extension/style/index.css';
- export default {
- component: DefaultIconReact,
- title: 'IconReact'
- };
- export const buildIcon = () => (
- <DefaultIconReact name={'build'} kind={'sideBar'} />
- );
- export const runningIcon = () => (
- <DefaultIconReact name={'running'} height={'800px'} width={'800px'} />
- );
- export const html5Icon = () => (
- <div className={'foobar'} style={{ height: '500px', width: '500px' }}>
- <DefaultIconReact name={'html5'} justify="center" />
- </div>
- );
|