summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Cioria <firefelix@gmail.com>2017-04-20 15:22:01 +0200
committerFrancesco Cioria <firefelix@gmail.com>2017-04-20 15:22:01 +0200
commit9a992acc033d787093855dc52f74815471ab6075 (patch)
tree2373c0a387fdbe64ebfd7c8b153a02f68fb35c44
parent561d10840b21cfa7f30a62f958eb01284c9f01f7 (diff)
downloadreact-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.zip
react-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.tar.gz
react-autosize-textarea-9a992acc033d787093855dc52f74815471ab6075.tar.bz2
Update README.md
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index 3b19fe6..8c82fc9 100644
--- a/README.md
+++ b/README.md
@@ -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.