Swatch
One colour to choose, as a round swatch with its name; or any other colour, from the platform's own picker.
import { Swatch } from "@arcadia/ui"TSX
Examples
Swatch
colorrequired- string
- The colour it shows,
#rrggbbor a token'svar(). WithonPick, the colour last picked (#rrggbb), shown in its middle while it is selected. labelrequired- string
- Required: its name, which is its accessible name and its tooltip.
selected- booleanDefault false
- It is the colour chosen: an ink ring round it. As a
radio,aria-checked; elsearia-pressed. onPick- (color: string) => void
- Any other colour: a wheel of hues that opens the platform's own picker, handing back the colour picked.
size- "sm" | "md" | "lg"Default "lg"
sm24,md28,lg32.tooltip- false
false: no tooltip, where its name already stands beside it.rootStyle- RootStyle
- Typed StyleX override: layout.
Rest props go to <button> props.