apphouse
Version:
Component library for React that uses observable state management and theme-able components.
23 lines (22 loc) • 827 B
TypeScript
import React from 'react';
import { InputProps } from './input.interface';
interface ResizableInputProps extends Omit<InputProps, 'styleOverwrites'> {
/**
* The styles to be applied to the textarea
*/
styleOverwrites?: any;
/**
* If provided, the input will stop resizing when it reaches this height
* @default undefined - the input will resize to fit the content
*/
maxHeight?: number;
}
/**
* This is an internal component and it should not be used directly
* (although it can be used) as it doesn't provide labels, descriptions, etc.
* It is used by the Input component to provide a resizable textarea.
* @param props
* @returns
*/
export declare const ResizableInput: React.ForwardRefExoticComponent<ResizableInputProps & React.RefAttributes<HTMLTextAreaElement>>;
export {};