Custom ColorPalette

The ColorPalette provides options for the user to specify the number of its columns and its tile size.

The following example demonstrates how to customize the rendering of the ColorPalette.

class App extends React.Component {
    render() {
        return <ColorPalette columns={5} tileSize={{width: 40, height: 30}} palette='basic' />;
    }
}

ReactDOM.render(
    <App />,
    document.querySelector('my-app')
);