@confi/conflux-react-ui-test-package
Version:
Modern and minimalist React UI library.
14 lines (13 loc) • 755 B
TypeScript
import React, { PropsWithoutRef, RefAttributes } from 'react';
import Textarea from '../textarea/textarea';
import InputPassword from './password';
import { Props, defaultProps } from './input-props';
declare type NativeAttrs = Omit<React.InputHTMLAttributes<any>, keyof Props>;
export declare type InputProps = Props & typeof defaultProps & NativeAttrs;
declare type InputComponent<T, P = {}> = React.ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> & {
Textarea: typeof Textarea;
Password: typeof InputPassword;
};
declare type ComponentProps = Partial<typeof defaultProps> & Omit<Props, keyof typeof defaultProps> & NativeAttrs;
declare const _default: InputComponent<HTMLInputElement, ComponentProps>;
export default _default;