ColorPicker
Color selection with HSB picker.
Import
tsx
import { ZColorPicker } from "@zurto/ui";Usage
tsx
<ZColorPicker value="#df3e53" onChange={setColor} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | – | Color value (hex) |
onChange | (color: string) => void | – | Change handler |
presets | string[] | – | Preset colors |
showAlpha | boolean | false | Show alpha slider |