UNPKG

@adaptabletools/adaptable-cjs

Version:

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

31 lines (30 loc) 1.06 kB
import * as React from 'react'; import { HTMLProps } from 'react'; import { BoxProps } from '../Flex'; 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; className?: string; style?: React.CSSProperties; } & Omit<BoxProps, 'ref'>; declare const Textarea: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLTextAreaElement>, "ref"> & { placeholder?: string; type?: string; disabled?: boolean; value?: string; autoResizeOnFocus?: boolean; className?: string; style?: React.CSSProperties; } & Omit<BoxProps, "ref"> & React.RefAttributes<HTMLDivElement | HTMLTextAreaElement | HTMLInputElement>>; export default Textarea;