UNPKG

tdesign-react

Version:
19 lines (18 loc) 674 B
import React from 'react'; import { TdInputProps } from './type'; import { StyledProps } from '../common'; export interface InputProps extends TdInputProps, StyledProps { showInput?: boolean; keepWrapperWidth?: boolean; } export interface InputRef extends React.RefObject<unknown> { currentElement: HTMLDivElement; inputElement: HTMLInputElement; focus: () => void; blur: () => void; select: () => void; } declare const Input: React.FunctionComponent<InputProps & React.RefAttributes<InputRef>> & { Group: React.ForwardRefExoticComponent<import("./InputGroup").InputGroupProps & React.RefAttributes<HTMLDivElement>>; }; export default Input;