Color Picker
A wrapping grid of colour chips with arrow-key roving focus, a native custom-colour tile and an optional hex field.
tsx
import { ColorPicker, ColorSwatch } from "@pestoui/core"Palette
Uncontrolled — the picker holds its own value. The dashed tile opens the OS colour dialog for anything outside the palette.
Controlled with a hex field
Pass value and onValueChange to own the state. showInput adds a preview tile and a hex input that accepts the #rgb shorthand.
Swatch sizes
ColorSwatch on its own — a squircle button that carries the fill in style, never in a class.
Props
Pesto UI · 117 documented components