duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
28 lines (27 loc) • 1.19 kB
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunFilePickerElement } from '../elements/file-picker';
export * from '../elements/file-picker';
export type DyFilePickerProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunFilePickerElement> & {
type?: DuoyunFilePickerElement['type'];
accept?: DuoyunFilePickerElement['accept'];
/**@deprecated */
placeholder?: DuoyunFilePickerElement['placeholder'];
directory?: DuoyunFilePickerElement['directory'];
disabled?: DuoyunFilePickerElement['disabled'];
multiple?: DuoyunFilePickerElement['multiple'];
'onchange'?: (event: CustomEvent<Parameters<DuoyunFilePickerElement['change']>[0]>) => void;
value?: DuoyunFilePickerElement['value'];
};
export type DyFilePickerExpose = {
showPicker: DuoyunFilePickerElement['showPicker'];
};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-file-picker': DyFilePickerProps;
}
}
}
export declare const DyFilePicker: ForwardRefExoticComponent<Omit<DyFilePickerProps, "ref"> & RefAttributes<DyFilePickerExpose>>;
export default DyFilePicker;