UNPKG

@ppci/custom-loader

Version:

A custom loader

73 lines (70 loc) 1.35 kB
import { storiesOf, html, withKnobs, withClassPropertiesKnobs, } from '@open-wc/demoing-storybook'; /* Components */ import { CustomLoader } from '..'; import readme from '../README.md'; storiesOf('UI Elements|Loader', module) .addDecorator(withKnobs) .add( 'Default', () => withClassPropertiesKnobs(CustomLoader, { overrides: () => [ // Properties ], template: html` <custom-loader> </custom-loader> `, }), { notes: { markdown: readme, }, options: { selectedPanel: 'storybooks/knobs/panel', }, }, ) .add( 'Small', () => withClassPropertiesKnobs(CustomLoader, { overrides: () => [ // Properties ], template: html` <custom-loader small> </custom-loader> `, }), { notes: { markdown: readme, }, options: { selectedPanel: 'storybooks/knobs/panel', }, }, ) .add( 'Medium', () => withClassPropertiesKnobs(CustomLoader, { overrides: () => [ // Properties ], template: html` <custom-loader medium> </custom-loader> `, }), { notes: { markdown: readme, }, options: { selectedPanel: 'storybooks/knobs/panel', }, }, );