diff options
author | Francesco Cioria <firefelix@gmail.com> | 2017-04-20 15:22:01 +0200 |
---|---|---|
committer | Francesco Cioria <firefelix@gmail.com> | 2017-04-20 15:22:01 +0200 |
commit | 9a992acc033d787093855dc52f74815471ab6075 (patch) | |
tree | 2373c0a387fdbe64ebfd7c8b153a02f68fb35c44 | |
parent | 561d10840b21cfa7f30a62f958eb01284c9f01f7 (diff) | |
download | react-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.zip react-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.tar.gz react-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.tar.bz2 |
Update README.md
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -53,6 +53,12 @@ In addition to `minHeight`, you can force `TextareaAutosize` to have a minimum n <TextareaAutosize rows={3} /> // minimun height is three rows ``` +In addition to `maxHeight`, you can force `TextareaAutosize` to have a maximum number of rows by passing the prop `maxRows`: + +```jsx +<TextareaAutosize maxRows={3} /> // maximum height is three rows +``` + #### Refs to DOM nodes In order to manually call `textarea`'s DOM element functions like `focus()` or `blur()`, you need a ref to the DOM node. |