UNPKG

duoyun-ui

Version:

A lightweight desktop UI component library, implemented using Gem

24 lines (23 loc) 1.12 kB
import { HTMLAttributes, RefAttributes } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { DuoyunDropAreaElement } from '../elements/drop-area'; export * from '../elements/drop-area'; export type DyDropAreaProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunDropAreaElement> & { tip?: DuoyunDropAreaElement['tip']; accept?: DuoyunDropAreaElement['accept']; dropeffect?: DuoyunDropAreaElement['dropeffect']; allowDrop?: DuoyunDropAreaElement['allowDrop']; 'onchange'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['change']>[0]>) => void; 'onignore'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['ignore']>[0]>) => void; 'onnodata'?: (event: CustomEvent<Parameters<DuoyunDropAreaElement['nodata']>[0]>) => void; }; export type DyDropAreaExpose = {}; declare global { namespace JSX { interface IntrinsicElements { 'dy-drop-area': DyDropAreaProps; } } } export declare const DyDropArea: ForwardRefExoticComponent<Omit<DyDropAreaProps, "ref"> & RefAttributes<DyDropAreaExpose>>; export default DyDropArea;