UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

27 lines (26 loc) 947 B
import * as React from 'react'; import { BoxProps } from 'rebass'; import { HTMLProps } from 'react'; export declare const baseClassName = "ab-Textarea"; /** * Autoheight strategy: * - save initial height * - when focused, expand to fit content - max x px * - when blurred, shrink to initial height * - when typing, expand to fit content - max x px */ export type TextareaProps = Omit<HTMLProps<HTMLTextAreaElement>, 'ref'> & { placeholder?: string; type?: string; disabled?: boolean; value?: string; autoResizeOnFocus?: boolean; } & Omit<BoxProps, 'ref'>; declare const Textarea: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLTextAreaElement>, "ref"> & { placeholder?: string; type?: string; disabled?: boolean; value?: string; autoResizeOnFocus?: boolean; } & Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLTextAreaElement | HTMLInputElement>>; export default Textarea;