Skip to content

The info on npmjs.com page is wrong #199

@iamcs

Description

@iamcs

The documentation now is


Installation

The easiest way to use React-Input-Autosize is to install it from NPM and include it in your own React build process (using Browserify, rollup, webpack, etc).

You can also use the umd build by including dist/AutosizeInput.js in your page. If you use this, make sure you have already included a umd React build.

npm install react-input-autosize --save

Usage

React-Input-Autosize generates an input field, wrapped in a

tag so it can detect the size of its value. Otherwise it behaves very similarly to a standard React input.
`
import AutosizeInput from 'react-input-autosize';

<AutosizeInput
name="form-field-name"
value={inputValue}
onChange={function(event) {
// event.target.value contains the new value
}}
/>
`

should be

npm install react-18-input-autosize --save
import AutosizeInput from 'react-18-input-autosize';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions