UNPKG

react-color

Version:

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

18 lines (16 loc) 611 B
import React from 'react'; import { storiesOf } from '@storybook/react'; import { renderWithKnobs } from '../../../.storybook/report'; import SyncColorField from '../../../.storybook/SyncColorField'; import Circle from './Circle'; storiesOf('Pickers', module).add('CirclePicker', function () { return React.createElement( SyncColorField, { component: Circle }, renderWithKnobs(Circle, {}, null, { width: { range: true, min: 140, max: 500, step: 1 }, circleSize: { range: true, min: 8, max: 72, step: 4 }, circleSpacing: { range: true, min: 7, max: 42, step: 7 } }) ); });