Color Picker
FREESaturation area, hue slider, hex field, swatches and an eyedropper that picks from the screen.
Installation
Terminal
npx @bloxa/cli add color-picker
# or: npx shadcn@latest add @bloxa/color-pickerExamples
Color picker
#3b82f6API reference
Every component also accepts the props of the element it renders.
ColorPicker
| Prop | Type | Default | Description |
|---|---|---|---|
| value / onValueChange | string / (hex) => void | — | Hex color. |
| swatches | string[] | — | Presets; [] hides them. |
| eyeDropper | boolean | true | Screen picker button (Chromium). |