Description
react-gcolor-picker is a React component for picking solid colours and gradients. Users can choose a colour in hex, RGB or RGBA, or in HSL or HSLA, and can build linear or radial gradients with colour stops. The picker is inspired by gpickr and is written with React Hooks, so it needs React 16.8.0 or later. Props control what appears: you can show or hide the solid and gradient panels, the alpha slider, the text inputs, the gradient angle, position, mode and stops, and you can decide whether new stops can be added. The value prop sets the starting colour, and the format prop chooses whether the result is returned as rgb, hex or hsl. Other props set a debounce delay, the popup width, the height of the colour board and a default list of colours for the panel. The README links to a live demo and gives install commands for npm and yarn.…
Highlights
- Solid colours and gradients
- Linear and radial gradient options
- Hex, RGB and HSL output formats
- Show or hide panels and inputs with props
- Works with React 16.8.0 and later
Ratings & Reviews
No ratings yet
Be the first to rate react-gcolor-picker.
People also visit
react-gcolor-picker FAQ
What does react-gcolor-picker do?
It is a React colour and gradient picker. Users can choose a solid colour or build a linear or radial gradient.
Which React version does it need?
React 16.8.0 or later, because the component is built with React Hooks.
Which colour formats can it return?
The format prop accepts rgb, hex or hsl. The value prop accepts rgba, rgb, hsla, hsl and named colours.
Can I hide parts of the picker?
Yes. Props such as showAlpha, showInputs, solid, gradient and showGradientStops turn individual panels and fields on or off.
Is there a demo?
The README links to a live demo of the picker.
What are the best react-gcolor-picker alternatives?
Popular alternatives to react-gcolor-picker include react-color-palette, @alisowski/color-picker and react-colorful. See all react-gcolor-picker alternatives
















