UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

20 lines (19 loc) 852 B
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunColorPanelElement } from '../elements/color-panel'; export * from '../elements/color-panel'; export type DyColorPanelProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunColorPanelElement> & { value?: DuoyunColorPanelElement['value']; alpha?: DuoyunColorPanelElement['alpha']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunColorPanelElement['change']>[0]>) => void; }; export type DyColorPanelExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-color-panel': DyColorPanelProps; } } } export declare const DyColorPanel: ForwardRefExoticComponent<Omit<DyColorPanelProps, "ref"> & RefAttributes<DyColorPanelExpose>>; export default DyColorPanel;