react-auto-growing-input

0.0.3 • Public • Published

React Auto Growing Input

A text input component for React which grows with content

Installation

npm install --save react-auto-growing-input

Usage

import React from 'react';
import ReactAutoGrowingInput from 'react-auto-growing-input';

const App = () => (
  <ReactAutoGrowingInput 
    size={4} 
    style={{ borderWidth: 1, borderStyle: 'solid' }}
    onChange={(event) => console.log(event.target.value)}
    />
);

Props

it inherits all props of input

size: number, default: 4

Package Sidebar

Install

npm i react-auto-growing-input

Weekly Downloads

92

Version

0.0.3

License

MIT

Unpacked Size

27.6 kB

Total Files

14

Last publish

Collaborators

  • hungvu