UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

23 lines (22 loc) 977 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunColorPickerElement } from '../elements/color-picker'; export * from '../elements/color-picker'; export type DyColorPickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunColorPickerElement> & { value?: DuoyunColorPickerElement['value']; alpha?: DuoyunColorPickerElement['alpha']; disabled?: DuoyunColorPickerElement['disabled']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunColorPickerElement['change']>[0]>) => void; }; export type DyColorPickerExpose = { showPicker: DuoyunColorPickerElement['showPicker']; }; declare global { namespace JSX { interface IntrinsicElements { 'dy-color-picker': DyColorPickerProps; } } } export declare const DyColorPicker: ForwardRefExoticComponent<Omit<DyColorPickerProps, "ref"> & RefAttributes<DyColorPickerExpose>>; export default DyColorPicker;