ColorPicker

Color picker control.

Example

import { useState } from "react";
import { ColorPicker } from "swash/controls/ColorPicker";
const [value, setValue] = useState("#000000");
() => (
    <ColorPicker value={value} onChange={setValue} />
);

API

Props

React propsValue(s)Description
valuestring / nullActual field value.
onChange(value: string) => voidTriggered when the color changes.