summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--README.md23
1 files changed, 19 insertions, 4 deletions
diff --git a/README.md b/README.md
index 6f868b7..fc9d848 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,25 @@
-# React Textarea Autosize
+# React Autosize Textarea
A light replacement for built-in textarea component which automaticaly adjusts its height to match the content.
**It does not require any polyfill**
-This module is based on the very popular autosize library. Check its website [here](http://www.jacklmoore.com/autosize/) for more documentation.
+This module is based on the very popular autosize script written by Jack Moore. Check its website [here](http://www.jacklmoore.com/autosize/) for more documentation.
-#####Browser Compatibility
+```
+var Textarea = require('react-autosize-textarea');
+
+React.renderComponent(
+ <div>
+ <Textarea></Textarea>
+ </div>,
+ document.body);
+```
+
+###Install
+```
+npm install --save react-autosize-textarea
+```
+
+###Browser Compatibility
| Chrome | Firefox | IE | Safari | Android |
| ------------- | ------------- | ----- | ------ | ------- |
-| Yes | Yes | 9+ | Yes | 4+ | \ No newline at end of file
+| Yes | Yes | 9+ | Yes | 4+ |