summaryrefslogtreecommitdiffstats
path: root/examples/MinimumHeight.example
blob: 4acca887f239b8543a399a7fb6d2f4ae883c09f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// import TextareaAutosize from 'react-autosize-textarea';

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>
    );
  }

}