tdesign-react
Version:
TDesign Component for React
19 lines (18 loc) • 674 B
TypeScript
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;