Controls

Swatch and hex field

a colour: the browser’s picker beside the hex as text · six digits apply as you type

Swatch and hex fieldWeb only

API

<HexField label value onChange id? /> · <Swatch hex />

Get it

Already in every copy of the web kit:

import { HexField, Swatch, readHex } from '@/components/controls/swatch';

Details

Exports
HexField, Swatch, readHex
Packages
cn@^0.5.2
Also searched as
colour field, color picker, hex input, colour square
Registry JSON
/r/web/swatch.json

Agents: the whole registry is at /llms.txt.