import "@potzblitz/styles/lib/components/ColorPicker.scss"; import { api } from "@potzblitz/components"; import React, { useState } from "react"; export interface ReactColorPickerProps extends api.ColorPickerProps { value: string; } export function ColorPicker(props: ReactColorPickerProps) { const [idStr, _id] = api.uniqueName(props.label); const [vO, setVO] = useState(props.value); const handleColorChange = (e: InputEvent) => { const target = e.target as HTMLInputElement; setVO(target.value); props.onSelect && props.onSelect(target.value); }; return (
{props.label && }