ColorPicker
Color picker with palette and hex input. Powered by react-colorful (optional peer).
Examples
With label
Selected: #0084FF
const [color, setColor] = useState('#0084FF');<ColorPicker label="Brand color" required value={color} onChange={setColor} />
API Reference
Props of the ColorPicker component.
| Prop | Type | Default | Description |
|---|---|---|---|
value* | string | — | Hex color. |
onChange* | (value: string) => void | — | — |
label | string | — | — |
required | boolean | false | — |
helperText | string | — | — |
disabled | boolean | false | — |