react-textarea-autosize

  • Version 8.5.4
  • Published
  • 57.2 kB
  • 3 dependencies
  • MIT license

Install

npm i react-textarea-autosize
yarn add react-textarea-autosize
pnpm add react-textarea-autosize

Overview

textarea component for React which grows with content

Index

Variables

variable _default

const _default: React.ForwardRefExoticComponent<any>;

    Interfaces

    interface TextareaAutosizeProps

    interface TextareaAutosizeProps extends Omit<TextareaProps, 'style'> {}

      property cacheMeasurements

      cacheMeasurements?: boolean;

        property maxRows

        maxRows?: number;

          property minRows

          minRows?: number;

            property onHeightChange

            onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void;

              property style

              style?: Style;

                Type Aliases

                type TextareaHeightChangeMeta

                type TextareaHeightChangeMeta = {
                rowHeight: number;
                };

                  Package Files (2)

                  Dependencies (3)

                  Dev Dependencies (33)

                  Peer Dependencies (1)

                  Badge

                  To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                  You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-textarea-autosize.

                  • Markdown
                    [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/react-textarea-autosize)
                  • HTML
                    <a href="https://www.jsdocs.io/package/react-textarea-autosize"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>