Skip to content
This repository has been archived by the owner on Nov 26, 2019. It is now read-only.

mschipperheyn/react-growable-textarea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-growable-textarea

Growable Textarea for React that uses css purely without any javascript calculations.

This growable textarea works by creating a hidden PRE shim that grows with the size of the text. Please let me know if you experience any issues with this. I haven't been able to test on browsers other than Chrome, Firefox and Safari.

Usage

<GrowableTextarea name="myFormEl" value="Some initial text"/>

<GrowableTextarea name="myFormEl" maxHeight={125} placeholder="max height:125px"/>

<GrowableTextarea name="myFormEl" minHeight={60} maxHeight={125} placeholder="min height: 60px; max height:125px"/>

Authors

Build

npm install
webpack

(Minified)

webpack -p

Open index.html to see some examples

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published