UNPKG

@uiw/react-color-block

Version:
12 lines (11 loc) 471 B
import React from 'react'; import { HsvaColor, ColorResult } from '@uiw/color-convert'; export interface BlockProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'color'> { prefixCls?: string; showTriangle?: boolean; color?: string | HsvaColor; colors?: string[]; onChange?: (color: ColorResult) => void; } declare const Block: React.ForwardRefExoticComponent<BlockProps & React.RefAttributes<HTMLDivElement>>; export default Block;