InputColor is a composable color picker with area, slider, swatch, and input sub-components.
InputColor can be used inside a Popover, with a color swatch as the trigger.
Sliders support vertical orientation, displayed alongside the color area.
Demonstrates tracking color value changes during interaction and when interaction ends.
Advanced color picker with per-format channel sliders, input groups for RGBA, HSBA, HSLA, OKLCH channels, and a CSS output.
InputColor integrates seamlessly with the PrimeVue Forms library.
The Color class is the base class for all color classes. It provides the basic functionality for all color classes.
The area handle has role="slider" with aria-roledescription="2d slider". It includes aria-label describing the two axes (e.g., "saturation and brightness"), aria-valuemin, aria-valuemax, aria-valuenow, and aria-valuetext describing the current channel values.
| Key | Function |
|---|---|
| tab | Moves focus to the area handle. |
| right arrow | Moves the area handle to the right. |
| left arrow | Moves the area handle to the left. |
| up arrow | Moves the area handle up. |
| down arrow | Moves the area handle down. |
The slider handle has role="slider" with aria-label, aria-valuemin, aria-valuemax, aria-valuenow, and aria-valuetext describing the current channel value.
| Key | Function |
|---|---|
| tab | Moves focus to the slider handle. |
| up arrowleft arrow | Decrements the slider value. |
| down arrowright arrow | Increments the slider value. |