react-colorful
Version:
🎨 A tiny (2,5 KB) color picker component for React and Preact apps. Fast, well-tested, dependency-free, mobile-friendly and accessible
10 lines (9 loc) • 357 B
TypeScript
import React from "react";
interface ComponentProps {
prefixed: boolean;
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 {};