duoyun-ui
Version:
A lightweight desktop UI component library, implemented using Gem
37 lines (36 loc) • 1.59 kB
TypeScript
import { HTMLAttributes, RefAttributes } from 'react';
import { ForwardRefExoticComponent } from 'react';
import { DuoyunInputElement } from '../elements/input';
export * from '../elements/input';
export type DyInputProps = HTMLAttributes<HTMLDivElement> & RefAttributes<DuoyunInputElement> & {
'onchange'?: (event: CustomEvent<Parameters<DuoyunInputElement['change']>[0]>) => void;
'onclear'?: (event: CustomEvent<Parameters<DuoyunInputElement['clear']>[0]>) => void;
name?: DuoyunInputElement['name'];
value?: DuoyunInputElement['value'];
type?: DuoyunInputElement['type'];
placeholder?: DuoyunInputElement['placeholder'];
spellcheck?: DuoyunInputElement['spellcheck'];
required?: DuoyunInputElement['required'];
disabled?: DuoyunInputElement['disabled'];
autofocus?: DuoyunInputElement['autofocus'];
clearable?: DuoyunInputElement['clearable'];
alwayclearable?: DuoyunInputElement['alwayclearable'];
rows?: DuoyunInputElement['rows'];
step?: DuoyunInputElement['step'];
min?: DuoyunInputElement['min'];
max?: DuoyunInputElement['max'];
dataList?: DuoyunInputElement['dataList'];
icon?: DuoyunInputElement['icon'];
filled?: DuoyunInputElement['filled'];
composing?: DuoyunInputElement['composing'];
};
export type DyInputExpose = {};
declare global {
namespace JSX {
interface IntrinsicElements {
'dy-input': DyInputProps;
}
}
}
export declare const DyInput: ForwardRefExoticComponent<Omit<DyInputProps, "ref"> & RefAttributes<DyInputExpose>>;
export default DyInput;