diff options
author | Francesco <firefelix@gmail.com> | 2016-09-14 15:19:29 +0300 |
---|---|---|
committer | Francesco <firefelix@gmail.com> | 2016-09-14 15:19:29 +0300 |
commit | 71bbe7a80ecbf24077e7c439a8156cf522f66b2c (patch) | |
tree | 7424e0c7a695dfbfaf1738b2ec24e35fca2e5757 /src/TextareaAutosize.js | |
parent | 959352df924aa396d31fdde4642090f282302b54 (diff) | |
download | react-autosize-textarea-71bbe7a80ecbf24077e7c439a8156cf522f66b2c.zip react-autosize-textarea-71bbe7a80ecbf24077e7c439a8156cf522f66b2c.tar.gz react-autosize-textarea-71bbe7a80ecbf24077e7c439a8156cf522f66b2c.tar.bz2 |
add docs to TextareAutosize
Diffstat (limited to 'src/TextareaAutosize.js')
-rw-r--r-- | src/TextareaAutosize.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TextareaAutosize.js b/src/TextareaAutosize.js index e2f6068..f6e2c1d 100644 --- a/src/TextareaAutosize.js +++ b/src/TextareaAutosize.js @@ -11,6 +11,9 @@ export const Props = { onResize: t.maybe(t.Function) }; +/** A light replacement for built-in textarea component which automaticaly adjusts its height to match the content + * @param onResize - called whenever the textarea resizes + */ @props(Props, { strict: false }) export default class TextareaAutosize extends React.Component { |