-
Notifications
You must be signed in to change notification settings - Fork 2
/
MultiLines.js
33 lines (28 loc) · 929 Bytes
/
MultiLines.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React from 'react';
import { action } from '@storybook/addon-actions';
import EditableText from '@ichef/gypcrete/src/EditableText';
import DebugBox from 'utils/DebugBox';
function MultiLines() {
return (
<div>
<DebugBox>
<EditableText
inputTag="textarea"
onChange={action('change')} />
</DebugBox>
<DebugBox>
<EditableText
inputTag="textarea"
value={'Controlled input\nin multiple lines'}
onChange={action('change')} />
</DebugBox>
<DebugBox>
<EditableText
inputTag="textarea"
defaultValue={'Unontrolled input\nin multiple lines'}
onChange={action('change')} />
</DebugBox>
</div>
);
}
export default MultiLines;