Skip to content
Preview

Set the accent to #2b6cff and the ground to #fafafa, then try #f0a

ColorPill

valuerequired
string
The colour as the text writes it: a hash and 3, 4, 6 or 8 hex digits. Anything else is drawn as plain text.
disabled
boolean
Default: false
Its field is turned off: the text takes the disabled ink.
inDraft
boolean
Default: false
In a textarea mirror, paint the colour on the edge without adding room to the text.
rootStyle
RootStyle
Typed StyleX override: layout.

Rest props go to HTMLAttributes<HTMLSpanElement>.

State machine

PreviewThe swatch sits beside its colour value.
#2b6cff