Color picker

A colour well, hex field and swatches.

Custom swatches

Disabled

API reference

Inputs

PropTypeDefaultDescription
swatchesreadonly string[] | nullnullCustom swatch palette; falls back to a built-in set when null.
disabledbooleanfalseWhether the picker is disabled.
pickLabelstringAccessible label for the native color well.
hexLabelstringAccessible label for the hex text field.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring'#6366f1'Selected color as a hex string. Two-way bindable with `[(value)]`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.