ant-design/components/input/index.tsx

30 lines
873 B
TypeScript
Raw Normal View History

import type * as React from 'react';
import type { InputProps, InputRef } from './Input';
import InternalInput from './Input';
2016-03-31 17:46:35 +08:00
import Group from './Group';
import Search from './Search';
2017-05-22 14:44:58 +08:00
import TextArea from './TextArea';
2018-11-29 10:03:16 +08:00
import Password from './Password';
2015-10-09 13:53:04 +08:00
export { InputProps, InputRef } from './Input';
export { GroupProps } from './Group';
export { SearchProps } from './Search';
export { TextAreaProps } from './TextArea';
2018-11-29 10:03:16 +08:00
export { PasswordProps } from './Password';
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;