Color Picker
inputsColor selection input with hex input, opacity slider, and recent colors.
Preview
No preview available
Check the code examples below.
Installation
npm install @launchapp/design-systemImport
import { ColorPicker } from "@launchapp/design-system";Examples
Color picker
const [color, setColor] = React.useState("#3b82f6");return <ColorPicker value={color} onChange={setColor} />;Props
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Controlled hex color value. |
onChange | (color: string) => void | — | Called when the color changes. |
presets | string[] | — | Preset color swatches. |