ColorSwatch
No consumersA colour value as a chip, with a checkerboard behind anything translucent.
A colour value as a chip, with a checkerboard behind it so translucency is visible rather than guessed. Promoted out of the builder's controls, and used wherever a stored colour is shown.
Default
color is a CSS colour string — this is data rather than styling, so a literal here is correct and not a token violation.
Props
ColorSwatch
| Prop | Type | Default | Description |
|---|---|---|---|
color | string | — | Any CSS colour. Omit for the empty/none state. |
size | "sm" | "md" | "sm" | Chip size. |