ant-design/components/input/index.tsx

30 lines
873 B
TypeScript
Raw Normal View History

import type * as React from 'react';
2022-06-22 14:57:09 +08:00
import Group from './Group';
import type { InputProps, InputRef } from './Input';
import InternalInput from './Input';
2022-06-22 14:57:09 +08:00
import Password from './Password';
import Search from './Search';
2017-05-22 14:44:58 +08:00
import TextArea from './TextArea';
2015-10-09 13:53:04 +08:00
export { GroupProps } from './Group';
2022-06-22 14:57:09 +08:00
export { InputProps, InputRef } from './Input';
export { PasswordProps } from './Password';
export { SearchProps } from './Search';
export { TextAreaProps } from './TextArea';
interface CompoundedComponent
extends React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>> {
Group: typeof Group;
Search: typeof Search;
TextArea: typeof TextArea;
Password: typeof Password;
}
const Input = InternalInput as CompoundedComponent;
2016-03-31 17:46:35 +08:00
Input.Group = Group;
Input.Search = Search;
2017-05-22 14:44:58 +08:00
Input.TextArea = TextArea;
2018-11-29 10:03:16 +08:00
Input.Password = Password;
2016-03-31 17:46:35 +08:00
export default Input;