Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1002 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 1002 Bytes
flex-textarea components which can grow.

This package is still in WIP, please do not use it now.

Features

  • Small: Just 2 KB gzipped js and 2 KB gzipped css.
  • Fast: Built with hooks and functional components only.
  • Simple: The interface is straight forward and easy to use.
  • No dependencies

You can try it on live demo page

Install

npm install react-flex-textarea

Usage

import { FlexTextarea } from "react-flex-textarea";
import "react-flex-textarea/dist/index.css";

const ControlledTextArea = () => {
  const [value, setValue] = useState('Hello. I am growable text area 🎉');

  return <FlexTextarea value={value} onChange={setValue} />;
};

Also you can find a growable <Textarea /> component in exports