Skip to content

vovakulikov/flex-inputs

Repository files navigation

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

About

Simple flex textarea component which can grow

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published