react-colorful
Version:
🎨 A tiny color picker component for modern React apps. Fast, well-tested, dependency-free, mobile-friendly and accessible
9 lines (8 loc) • 333 B
TypeScript
import React from "react";
interface ComponentProps {
color: string;
onChange: (newColor: string) => void;
}
declare type InputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value">;
export declare const HexColorInput: (props: Partial<InputProps & ComponentProps>) => JSX.Element;
export {};