chrome:shell.skip

generated:catalog.entry.color-picker.title

generated:catalog.entry.color-picker.description

@xngui/components/color-picker
@xngui/components/color-picker

chrome:demo.section

chrome:demo.preview

oklch(62.3% 0.188 269.8)

demo-preview:color-picker.oklch-hint

demo-preview:hints.category.navigation:
Tab
demo-preview:hints.category.focus:
Focus
demo-preview:hints.category.pointer:
Drag
demo-preview:hints.category.shortcuts:
Enter / Space
demo-preview:projection.slots-label:
[xStart] [xEnd]
import { Component } from '@angular/core';
import { XColorPicker } from '@xngui/components/color-picker';
import { XForm } from '@xngui/components/form';
import { XFormField } from '@xngui/components/form-field';
 
@Component({
selector: 'app-example',
imports: [XColorPicker, XForm, XFormField],
templateUrl: './color-picker.component.html',
})
export class ExampleComponent {}

chrome:demo.events.title 1

  1. changed
    {
      "value": "oklch(62.3% 0.188 269.8)",
      "previousValue": "oklch(0.623 0.188 269.815)"
    }

chrome:demo.api.title

x-color-picker

chrome:demo.api.col.property
chrome:demo.api.col.type
chrome:demo.api.col.default
chrome:demo.api.col.description
size
XSize
—
Visual size tier — falls back to XConfigService when unset.
density
XDensity
—
Spacing offsets — orthogonal to `size`; falls back to XConfigService when unset.
look
XFormLook
—
Field chrome — outline, fill, flat, or none; falls back to XForm then XConfigService.
format
XColorPickerFormat
'oklch'
Serialized output format for the bound value — `oklch`, `hex`, or `rgba`.
placement
XPlacement
—
Popover placement for the OKLCH picker panel — falls back to XConfigService when unset.
presets
readonly XColorPickerPreset[]
X_COLOR_PICKER_PRESETS
Swatch presets shown in the picker panel.
eyedropper
boolean
false
Show the screen color picker when the browser supports the EyeDropper API.
disabled
boolean
false
Prevents interaction and sets `aria-disabled` on the field.
readonly
boolean
false
Value-only input — user cannot change when true.
invalid
boolean
false
Marks the control invalid for styling and ARIA.
required
boolean
false
Marks the control as required for validation and ARIA.
name
string
''
Native form control `name` attribute.
controlId
string
—
Native `id` on the control; falls back to `name`, then a generated id.
ariaLabel
string
—
Accessible name when no visible label is provided.