@types/react-textarea-autosize
TypeScript definitions for react-textarea-autosize
Last updated 4 years ago by types .
MIT · Repository · Original npm
$ cnpm install @types/react-textarea-autosize 
SYNC missed versions from official npm registry.

Installation

npm install --save @types/react-textarea-autosize

Summary

This package contains type definitions for react-textarea-autosize (https://github.com/andreypopp/react-textarea-autosize).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-textarea-autosize.

index.d.ts

// Type definitions for react-textarea-autosize 4.3.0
// Project: https://github.com/andreypopp/react-textarea-autosize
// Definitions by: Alexey Svetliakov <https://github.com/asvetliakov>,
//                 Jerry Zou <https://github.com/zry656565>
//                 Rahul Sagore <https://github.com/Rahul-Sagore>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

declare module "react-textarea-autosize" {
    import * as React from "react";

    /**
     * <TextareaAutosize/> properties
     */
    export interface TextareaAutosizeProps extends React.HTMLProps<HTMLTextAreaElement> {
        /**
         * Current textarea value
         */
        value?: string | undefined;
        /**
         * Callback on value change
         * @param event
         */
        onChange?: ((event: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
        /**
         * Callback on height change
         * @param height
         */
        onHeightChange?: ((height: number) => void) | undefined;
        /**
         * Try to cache DOM measurements performed by component so that we don't
         * touch DOM when it's not needed.
         *
         * This optimization doesn't work if we dynamically style `<textarea />`
         * component.
         * @default false
         */
        useCacheForDOMMeasurements?: boolean | undefined;
        /**
         * Minimal number of rows to show.
         */
        rows?: number | undefined;
        /**
         * Alias for `rows`.
         */
        minRows?: number | undefined;
        /**
         * Maximum number of rows to show.
         */
        maxRows?: number | undefined;
        /**
         * Allows an owner to retrieve the DOM node.
         */
        inputRef?: ((node: HTMLTextAreaElement) => void) | React.RefObject<HTMLTextAreaElement> | undefined;
    }

    /**
     * <TextareaAutosize/>
     */
    export default class TextareaAutosize extends React.Component<TextareaAutosizeProps> { }

}

Additional Details

  • Last updated: Wed, 07 Jul 2021 18:31:47 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Alexey Svetliakov, Jerry Zou, and Rahul Sagore.

Current Tags

  • 4.3.6                                ...           latest (4 years ago)
  • 4.3.5                                ...           ts2.8 (6 years ago)
  • 4.3.5                                ...           ts2.9 (6 years ago)
  • 4.3.5                                ...           ts3.0 (6 years ago)
  • 4.3.5                                ...           ts3.1 (6 years ago)
  • 4.3.5                                ...           ts3.2 (6 years ago)
  • 4.3.5                                ...           ts3.3 (6 years ago)
  • 4.3.5                                ...           ts3.4 (6 years ago)
  • 4.3.5                                ...           ts3.5 (6 years ago)
  • 4.3.6                                ...           ts3.6 (4 years ago)
  • 4.3.6                                ...           ts3.7 (4 years ago)
  • 4.3.6                                ...           ts3.8 (4 years ago)
  • 4.3.6                                ...           ts3.9 (4 years ago)
  • 4.3.6                                ...           ts4.0 (4 years ago)

6 Versions

  • 4.3.6                                ...           4 years ago
  • 4.3.2                                ...           8 years ago
  • 4.3.1                                ...           8 years ago
  • 4.3.0                                ...           8 years ago
  • 4.0.5                                ...           9 years ago
  • 4.3.5                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org