Skip to main content
FlexColorPickerField ← Back to Table of Contents

Summary

Full-featured color picker with two distinct layouts: Advanced (HSV square + hue/alpha sliders + eyedropper) and Grid (preset swatches). Supports multiple output formats (Hex, RGB, HSL, RGBA) and features a modern, compact UI.

Basic usage

Advanced HSV Picker

Grid Palette


State & validation

Stored value

State is a CSS color string in the format selected via hex(), rgb(), hsl(), or rgba().

Validation rules (built-in)

Ensures the input is a valid color string matching the expected format.

Configuration API

All methods accept Closure unless noted.

Real-world examples

Transparent Background Color

Fixed Palette Selection


Playground

/admin/flex-fields-playground/flex-color-picker See Playground for setup.

CSS classes (reference)