ColorPicker
Colour field: a swatch (or the child) opens the palette.
Group: Inputs · Kind: macro
Preview
Section titled “Preview”value
empty
child · a status glyph
inline
open · the label palette
Platforms
Section titled “Platforms”The same specimen painted by React, SwiftUI, Compose and gpui.




| Prop | Type | Required | Bindable | Description |
|---|---|---|---|---|
value |
string |
– | yes | Picked hex colour. |
colors |
[string] |
– | – | Offered hexes; default the label palette. |
open |
boolean |
– | yes | Grid shows; bind it. Default false. |
inline |
boolean |
– | – | Grid only, no trigger. Default false. |
Events
Section titled “Events”on.change: runs an action
None.
Children
Section titled “Children”one
A2UI basic mapping
Section titled “A2UI basic mapping”No basic catalog component maps here.
Built from
Section titled “Built from”Accessibility
Section titled “Accessibility”Role: button
as IconPicker: the trigger (a child = a ghost button around it) is named Color: #hex, each swatch a toggle button named by its hex; inline = the swatches alone
| Keys | Action |
|---|---|
As IconPicker; inline |
Tab moves through the swatches, Enter, Space picks |
Theming
Section titled “Theming”Recipe parts: ColorPicker/root ColorPicker/grid ColorPicker/swatch ColorPicker/fill ColorPicker/trigger ColorPicker/dot ColorPicker/customTrigger ColorPicker/content
Keyed by: selected :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover :warning :info
Related
Section titled “Related”Button · Popover · Form · FieldGroup · FormActions · SettingsRow · Input · Textarea