UNPKG

@uiw/react-color-circle

Version:

Color swatch component for React.

11 lines (10 loc) 485 B
import React from 'react'; import { HsvaColor, ColorResult } from '@uiw/color-convert'; import { SwatchProps } from '@uiw/react-color-swatch'; export interface CircleProps extends Omit<SwatchProps, 'color' | 'onChange'> { color?: string | HsvaColor; onChange?: (color: ColorResult) => void; pointProps?: React.HTMLAttributes<HTMLDivElement>; } declare const Circle: React.ForwardRefExoticComponent<CircleProps & React.RefAttributes<HTMLDivElement>>; export default Circle;