Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 496 Bytes

03.05-customStyles.md

File metadata and controls

26 lines (23 loc) · 496 Bytes
id title
api-customStyles
Customizing Styles

Pass a styles object to override the default inline styles.

import React from 'react'
import { SketchPicker } from 'react-color'

const sketchPickerStyles = {
  default: {
    picker: { // See the individual picker source for which keys to use
      boxShadow: 'none',
    },
  },
}

export default class Component extends React.Component {
  render() {
    return (
      <SketchPicker styles={sketchPickerStyles} />
    )
  }
}