Color Picker

Free + Pro

Enhanced color picker component with multiple formats, smooth animations, and intuitive controls. Perfect for theme customization and design tools.

Unlock Advanced Color Picker Features

Get access to powerful pro features that enhance your color picker component with advanced capabilities, premium styling options, and optimized performance.

  • HSV saturation/brightness field instead of a single native swatch
  • Dedicated hue and opacity strips with live gradients
  • 8-digit hex (#RRGGBBAA) output when opacity drops below 100%

Pro Features

Unlock advanced capabilities with the Pro version

HSV Colour Field

Pick saturation and brightness on a two-dimensional field, with separate hue and opacity strips — far more precise than a single native swatch

Keyboard Operable

Arrow keys move one step, Shift ten, Home/End jump to the bounds. Each field is a labelled slider that announces its value to screen readers

Opacity Support

The alpha strip feeds the value back out: onChange emits #RRGGBBAA whenever opacity is below 100%, and plain #RRGGBB when fully opaque

Hex Input & Presets

Type a hex value directly, copy the current colour to the clipboard, reset to the initial value, or pick from a preset palette you define

Installation

Install via CLI

npx @moontra/moonui-cli add color-picker

Usage

Basic Usage

Pro Required

Pro Usage

PRO
Pro Required

Examples

Simple Swatch Picker

SimpleColorPicker renders a flat preset grid with no popover — the fastest choice when a small, fixed palette is enough

#3b82f6

Gradient Picker

GradientPicker edits a start colour, an end colour and an angle together, and returns them as a single object

90°

linear-gradient(90deg, #3b82f6, #8b5cf6)

Basic Color Picker

Simple color picker with hex format.

Different Sizes and Shapes

Color pickers with various sizes and shapes.

Custom Presets & Opacity

Provide your own preset swatches, enable the opacity slider, and hide the copy button.

Color Palette

Grid of color pickers for creating palettes.

PRO
Pro Examples

HSV Picker with Opacity

PRO

Saturation/brightness field, hue strip and an alpha strip. When opacity drops below 100%, onChange emits 8-digit hex (#RRGGBBAA).

Pro Required
#3b82f6

Fully Keyboard Operable

PRO

Every field is reachable with Tab and driven by the arrow keys — hold Shift for ten steps, Home/End jump to the bounds. Each field exposes role="slider" with an aria-valuetext screen readers can announce.

Pro Required

Custom Presets, No Alpha

PRO

Swap the preset palette for your brand colours and hide the opacity strip when the output must stay fully opaque.

Pro Required