Color Picker

inputs

Color selection input with hex input, opacity slider, and recent colors.

Preview

No preview available

Check the code examples below.

Installation

npm install @launchapp/design-system
Import
import { ColorPicker } from "@launchapp/design-system";

Examples

Color picker

const [color, setColor] = React.useState("#3b82f6");return <ColorPicker value={color} onChange={setColor} />;

Props

PropTypeDefaultDescription
value
stringControlled hex color value.
onChange
(color: string) => voidCalled when the color changes.
presets
string[]Preset color swatches.