wix-style-react
Version:
wix-style-react
31 lines (28 loc) • 734 B
JavaScript
import ColorPicker from '../../src/ColorPicker';
import { storySettings } from './storySettings';
export default {
category: storySettings.category,
storyName: storySettings.storyName,
component: ColorPicker,
componentPath: '../../src/ColorPicker',
componentProps: function componentProps(setProps) {
return {
value: '#3899eb',
onChange: function onChange(value) {
return setProps({ value: value.hex() });
},
dataHook: storySettings.dataHook
};
},
exampleProps: {
onChange: function onChange(ev) {
return ev.hex();
},
onCancel: function onCancel() {
return 'Cancelled';
},
onConfirm: function onConfirm() {
return 'Confirmed';
}
}
};