UNPKG

react-color

Version:

A Collection of Color Pickers from Sketch, Photoshop, Chrome & more

16 lines (14 loc) 481 B
import React from 'react'; import { storiesOf } from '@storybook/react'; import { renderWithKnobs } from '../../../.storybook/report'; import SyncColorField from '../../../.storybook/SyncColorField'; import Block from './Block'; storiesOf('Pickers', module).add('BlockPicker', function () { return React.createElement( SyncColorField, { component: Block }, renderWithKnobs(Block, {}, null, { width: { range: true, min: 140, max: 500, step: 1 } }) ); });