summaryrefslogtreecommitdiffstats
path: root/examples/MinimumHeight.example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/MinimumHeight.example')
-rw-r--r--examples/MinimumHeight.example20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/MinimumHeight.example b/examples/MinimumHeight.example
new file mode 100644
index 0000000..989d5b9
--- /dev/null
+++ b/examples/MinimumHeight.example
@@ -0,0 +1,20 @@
+class Example extends React.Component {
+
+ render() {
+ const textareaStyle = {
+ padding: '10px 8px',
+ border: '1px solid rgba(39,41,43,.15)',
+ borderRadius: 4,
+ fontSize: 15,
+ width: 300
+ };
+
+ return (
+ <div>
+ <h2>Minimum Height</h2>
+ <TextareaAutosize rows='3' style={textareaStyle} placeholder='minimun height is 3 rows'/>
+ </div>
+ );
+ }
+
+}