summaryrefslogtreecommitdiffstats
path: root/examples/Prefilled.example
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Prefilled.example')
-rw-r--r--examples/Prefilled.example20
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/Prefilled.example b/examples/Prefilled.example
new file mode 100644
index 0000000..af46fcb
--- /dev/null
+++ b/examples/Prefilled.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>Prefilled</h2>
+ <TextareaAutosize style={textareaStyle} defaultValue={'this\nis\na\nlong\ninitial\ntext'}/>
+ </div>
+ );
+ }
+
+}