react-colorful
Version:
🎨 A tiny (2,8 KB) color picker component for React and Preact apps. Fast, well-tested, dependency-free, mobile-friendly and accessible
11 lines (10 loc) • 384 B
TypeScript
/// <reference types="react" />
import { ColorInputBaseProps } from "../types";
interface HexColorInputProps extends ColorInputBaseProps {
/** Enables `#` prefix displaying */
prefixed?: boolean;
/** Allows `#rgba` and `#rrggbbaa` color formats */
alpha?: boolean;
}
export declare const HexColorInput: (props: HexColorInputProps) => JSX.Element;
export {};