Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Color Area

A two-dimensional color picker component for saturation and brightness.

vu-color-area · @velkin/react/color-area

Copy page

Import

React
npm i @velkin/react

import { VuColorArea } from "@velkin/react/color-area";

Examples

API

Props

PropTypeDefaultDescription
showErrorsbooleanfalseShows validation after activation.
validationActivebooleanfalseDrives invalid styling after activation.
invalidbooleanfalseTrue when the last validation run found errors.

Events

EventDetailDescription
vu-inputVuColorAreaChangeDetailContinuous while dragging or adjusting with keys.
vu-changeVuColorAreaChangeDetailCommit when the pointer releases or a discrete key moves.
vu-invalidCustomEventWhen validation messages are recomputed while `validationActive`.

Slots

SlotDescription
errorReplaces default validation message list when assigned.

CSS parts

PartDescription
baseClickable plane (CSS gradients or canvas).
thumbPicked-color thumb.
dotsOptional `showdots` overlay.
liveLive region on commit.
fieldColumn that stacks the plane and optional error.
error-messageRegion for `slot="error"` or stacked default validation lines.
error-lineOne default validation string when `slot="error"` is empty.

Types

NameDefinition
VuColorAreaChangeDetail
{
  colorSpace: VuColorAreaColorSpace;
  xChannel: VuColorAreaChannel;
  yChannel: VuColorAreaChannel;
  value: string;
  hue: number;
  saturation: number;
  brightness: number;
  red: number;
  green: number;
  blue: number;
  hsv: HSV;
  hsl: HSL;
  rgb: RGB;
  hex: string;
  css: string;
}

Related

Inputs

  • Advanced FilterAn advanced filter component with expression input and visual builder.
  • ButtonA clickable button component with multiple variants and states.
  • Button GroupA button group component with shared styling and optional selection.
  • CheckboxA checkbox component with label, hint, and validation.
  • Checkbox GroupA checkbox group component with shared label and validation.
  • Color PickerA color picker component with swatches, sliders, and input field.

Guides

  • FormsFormData, VuForm, and validation
  • EventsonVu* / v-model / e.detail
  • Appearancevariant, color, tone, size

Browse

  • Previous: Checkbox GroupEarlier in the sidebar
  • Next: Color PickerLater in the sidebar
  • All componentsBrowse the full index