File size: 496 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
---
id: api-customStyles
title: 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} />
)
}
}
```
|