Color Picker
Color selection input with hue/saturation pad, sliders, preset swatches, and hex/rgb input. Supports alpha channel and compact popover mode. Includes a draggable saturation/lightness canvas, hue rainbow slider, optional alpha slider, manual hex input, and clickable preset color swatches. Works standalone or in compact mode as a small color swatch trigger.
Preview & Code
███
█████ ██████ █████████ ████████ ██████
██████
██████
███ ██████ ██████████████████████████ ██████ ██████████ ██████ ██████ ███████ █████ ███████ ██
████ █████████
███ ██████ ██████████████████████████
██████ ██████████
██████ █ ██████████ █ ████ ████████████████████
██████ ███████ █████ ███████ ██████████ █
██████ ███████ █ █
██████ ████████████
████████████ ███████████
██████████████ █████████████
██████████ ████████ █████████
█████████ █████████
█
█ ██████████████████████ ████
█████ ████████████████████ █ ███████████████████
████████████████ █ ██████████ ███████ ███████ ███████ ███████ ███████ ███████ ███████ ███████ ███████████████
███ ███████████
██████ ██████████
██████ ████
█████ ████
█████████ ███
████ ██████████ ███████████████ ███ ███ ████████████████████ ████████████████ ███
██ ██ ████████ ██
███ ███ ███████ ████ ███ ██
██ ██ ███████████████ ██
██████ ██████████ █████████████ ███████ ██████ ██████████
██ ███ ██
████ ███████████████ ██████████████
███ ███████ ██████ ██████ ██
██████ █ ██████████ █ ████ ████████████████████
██████ ███████ █████ ███████ ██████████ █
██████ ███████ █ █
██████ ████████████
████████████ ███████████
██████████████ █████████████
██████████ ████████ █████████
█████████ █████████
█
Changelog
- Initial release with saturation/lightness pad and hue slider
- Optional alpha channel slider
- Preset color swatches with active state ring
- Manual hex input with validation
- Compact popover mode
- Dark mode support throughout
- Hidden form input for Rails form integration
Get Full Access
Unlock the source code for this component and all others. One-time payment for lifetime access.
Get Access Now