summaryrefslogtreecommitdiffstats
path: root/examples/Prefilled.example
blob: af46fcbdc47a0922900d9454e5c43c49459eed41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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>
    );
  }

}