Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

flexible-input

streamich9561.0.3TypeScript support: included

Flexible input and textarea elements which expand and shrink as you type.

flexible, input, textarea, resizable, multiline, autosize, sizer

readme

Flexible <input> and <textarea> elements

This package implements flexible <input> and <textarea> which expand and shrink to fit the content.

Usage

Installation:

npm install flexible-input

Usage:

import {FlexibleInput} from 'flexible-input';

<FlexibleInput
  value={value}
  onChange={onChange}
  typeahead={'...'}
/>

Preview

See demo.