react-color
Version:
A Collection of Color Pickers from Sketch, Photoshop, Chrome & more
17 lines (15 loc) • 556 B
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { renderWithKnobs } from '../../../.storybook/report';
import SyncColorField from '../../../.storybook/SyncColorField';
import Swatches from './Swatches';
storiesOf('Pickers', module).add('SwatchesPicker', function () {
return React.createElement(
SyncColorField,
{ component: Swatches },
renderWithKnobs(Swatches, {}, null, {
width: { range: true, min: 140, max: 500, step: 1 },
height: { range: true, min: 140, max: 500, step: 1 }
})
);
});