TextArea.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930
  1. import React from 'react';
  2. import type { TextAreaRef } from './interface';
  3. declare const TextArea: React.ForwardRefExoticComponent<Omit<import("./interface").HTMLTextareaProps, "value" | "onResize"> & {
  4. value?: string | number | bigint | readonly string[];
  5. prefixCls?: string;
  6. className?: string;
  7. style?: React.CSSProperties;
  8. autoSize?: boolean | import("./interface").AutoSizeType;
  9. onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
  10. onResize?: (size: {
  11. width: number;
  12. height: number;
  13. }) => void;
  14. classNames?: {
  15. affixWrapper?: string;
  16. prefix?: string;
  17. suffix?: string;
  18. groupWrapper?: string;
  19. wrapper?: string;
  20. variant?: string;
  21. } & {
  22. textarea?: string;
  23. count?: string;
  24. };
  25. styles?: {
  26. textarea?: React.CSSProperties;
  27. count?: React.CSSProperties;
  28. };
  29. } & Pick<import("rc-input/lib/interface").BaseInputProps, "allowClear" | "suffix"> & Pick<import("rc-input").InputProps, "showCount" | "count" | "onClear"> & React.RefAttributes<TextAreaRef>>;
  30. export default TextArea;