summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco <firefelix@gmail.com>2015-06-29 22:02:25 +0200
committerFrancesco <firefelix@gmail.com>2015-06-29 22:04:43 +0200
commitc5c12c5597804cba88608602491ac18013deb57c (patch)
treedd0a7681944e5fdc89d3664c9f2e3bb9de033fc1
parent38bcbea671ac414323d3197df28d58be33217447 (diff)
downloadreact-autosize-textarea-c5c12c5597804cba88608602491ac18013deb57c.zip
react-autosize-textarea-c5c12c5597804cba88608602491ac18013deb57c.tar.gz
react-autosize-textarea-c5c12c5597804cba88608602491ac18013deb57c.tar.bz2
updated live demo link
-rw-r--r--README.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 91dd72f..a38fd2d 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,10 @@
-[![codecov.io](http://codecov.io/github/buildo/react-textarea-autosize/coverage.svg?branch=master)](http://codecov.io/github/buildo/react-textarea-autosize?branch=master)
-
# 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 script written by Jack Moore. 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 his website [here](http://www.jacklmoore.com/autosize/) for more documentation.
-```
+```jsx
var TextareaAutosize = require('react-autosize-textarea');
React.renderComponent(
@@ -15,8 +13,9 @@ React.renderComponent(
</div>,
document.body);
```
+[Live Demo](https://rawgit.com/buildo/react-autosize-textarea/master/examples/index.html)
-You can see a live demo [here](http://jsfiddle.net/FrancescoCioria/m2rpyfsx/2/)
+[More Examples](https://github.com/buildo/react-autosize-textarea/tree/master/examples)
###Install
```
@@ -27,7 +26,7 @@ npm install --save react-autosize-textarea
You can pass any props you're allowed to use with default React textarea (valueLink too).
You can also pass the callback **onResize** which will be triggered at any resize:
-```
+```jsx
onResize: React.PropTypes.func
```