Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FormsReact Native

Color picker

Edit controlled native colors with validated text, channels and optional alpha.

Public APILumenColorPickerReact Native

Native example

Use Color picker

Use bounded hex or rgba values; unsupported CSS strings remain visible as invalid drafts. Hosts own the value and optional named palette. Enable alpha explicitly; latent hue survives black or gray channel edits.

View captured React Native example
Color picker rendered in the Expo web renderer Lumen playground
Captured exampleExpo web renderer
tsx
<LumenColorPicker label="Accent color" value={color} onValueChange={setColor} />

Reference

Public API

The primary shared and platform-specific options exposed by LumenColorPicker.

APIValues or typeDefaultDescription
value / onValueChangeControlled color text / native binding or callbackRequiredRequests canonical color changes without replacing invalid host input.
allowAlpha / palette / labelsBoolean / named swatches / localized labelsfalse / empty / EnglishControls opacity support and accessible channel names.

Native behavior

Design and accessibility

When to use it

Use bounded hex or rgba values; unsupported CSS strings remain visible as invalid drafts. Hosts own the value and optional named palette. Enable alpha explicitly; latent hue survives black or gray channel edits.

Accessibility

Localized channel and palette names, validation feedback and native disabled/read-only controls.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives