UI
ColorPicker
Color picker with hex input, native color wheel, RGB readout, and preset swatches.
Quick Preview
Installation
# No extra dependencies
// Copy component fromsrc/components/ui/ColorPicker.tsx
Usage
import ColorPicker from '@/components/ui/ColorPicker'<ColorPickervalue={color}onChange={(hex) => setColor(hex)}/>
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | '#F45A5A' | Initial hex color value |
onChange | (hex: string) => void | - | Color change callback |