react-auto-growing-input
Version:
Auto Growing Input Component for React
30 lines (21 loc) • 520 B
Markdown
A text input component for React which grows with content
```bash
npm install --save react-auto-growing-input
```
```jsx
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)}
/>
);
```
it inherits all props of input
size: number, default: 4