TextArea.d.ts 956 B

12345678910111213141516171819202122232425
  1. import * as React from 'react';
  2. import type { TextAreaProps as RcTextAreaProps, TextAreaRef as RcTextAreaRef } from 'rc-textarea';
  3. import type { InputStatus } from '../_util/statusUtils';
  4. import type { Variant } from '../config-provider';
  5. import type { SizeType } from '../config-provider/SizeContext';
  6. import type { InputFocusOptions } from './Input';
  7. export interface TextAreaProps extends Omit<RcTextAreaProps, 'suffix'> {
  8. /** @deprecated Use `variant` instead */
  9. bordered?: boolean;
  10. size?: SizeType;
  11. status?: InputStatus;
  12. rootClassName?: string;
  13. /**
  14. * @since 5.13.0
  15. * @default "outlined"
  16. */
  17. variant?: Variant;
  18. }
  19. export interface TextAreaRef {
  20. focus: (options?: InputFocusOptions) => void;
  21. blur: () => void;
  22. resizableTextArea?: RcTextAreaRef['resizableTextArea'];
  23. }
  24. declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<TextAreaRef>>;
  25. export default TextArea;