UNPKG

react-color

Version:

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

23 lines (19 loc) 474 B
--- id: api-positionCSS title: positionCSS --- Use `positionCSS` alongside `display` to declare a custom position for the color picker with a CSS object: ``` var React = require('react'); var ColorPicker = require('react-color'); class Component extends React.Component { render() { var popupPosition = { position: 'absolute', top: '100px', left: '20px', }; return <ColorPicker positionCSS={ popupPosition } display={ true } />; } } ```