Color Input — Playground

px

Hex and OKLCH values are supported.

size
messages
State
html.html
<kui-field label="Primary seed" hint="Hex and OKLCH values are supported.">
  <input kuiColorInput autocomplete="off" />
</kui-field>
NameTypeDefaultDescription
kuiColorInputdirective-Applies Kikita color-input styling and picker affordances to a native input.
size'xs' | 'sm' | 'md' | 'lg''md'Control height matched to Kikita UI size tokens. Falls back to defaults.colorInput.size, then the parent field, then the global defaults.size.
invalidbooleanfalseApplies an error border and inherits invalid state from parent kui-field.
idstring | undefinedfield idNative input id override.
swatchLabelstring | undefinedcolorInput.openPicker messageAccessible label for the swatch button. Undefined when omitted: the rendered text comes from the colorInput.openPicker message (Open color picker).
messagesPartial<KuiColorInputMessages> | undefinedundefinedPer-instance text overrides (openPicker, pickerLabel, and the other picker labels). They win over scoped and root messages.
KuiColorInputOptionsinterface-Shape of defaults.colorInput: size and chevronIcon (takes precedence over defaults.icons.pickerChevron).

Inputs verified against @kikita-labs/ui v2.0.0 public typings.