@blueprintjs/core
Version:
Core styles & components
46 lines (45 loc) • 1.48 kB
TypeScript
import * as React from "react";
import { AbstractPureComponent2 } from "../../common";
import { IntentProps, Props } from "../../common/props";
export declare type TextAreaProps = ITextAreaProps;
/** @deprecated use TextAreaProps */
export interface ITextAreaProps extends IntentProps, Props, React.TextareaHTMLAttributes<HTMLTextAreaElement> {
/**
* Whether the text area should take up the full width of its container.
*/
fill?: boolean;
/**
* Whether the text area should appear with large styling.
*/
large?: boolean;
/**
* Whether the text area should appear with small styling.
*/
small?: boolean;
/**
* Whether the text area should automatically grow vertically to accomodate content.
*/
growVertically?: boolean;
/**
* Ref handler that receives HTML `<textarea>` element backing this component.
*/
inputRef?: React.Ref<HTMLTextAreaElement>;
}
export interface ITextAreaState {
height?: number;
}
/**
* Text area component.
*
* @see https://blueprintjs.com/docs/#core/components/text-inputs.text-area
*/
export declare class TextArea extends AbstractPureComponent2<TextAreaProps, ITextAreaState> {
static displayName: string;
state: ITextAreaState;
textareaElement: HTMLTextAreaElement | null;
private handleRef;
componentDidMount(): void;
componentDidUpdate(prevProps: TextAreaProps): void;
render(): JSX.Element;
private handleChange;
}