Skip to content

Commit 33be529

Browse files
committed
fix(dynamic-form): change example from textarea to code-editor
1 parent fe141d7 commit 33be529

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
textarea {
1+
limel-code-editor {
22
width: 100%;
3-
min-height: 300px;
43
}

src/components/form/examples/dynamic-form.tsx

+8-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ export class DynamicFormExample {
4545

4646
public render() {
4747
return [
48-
<textarea onChange={this.handleTextChange}>{this.text}</textarea>,
48+
<limel-code-editor
49+
language="json"
50+
lineNumbers={true}
51+
lint={true}
52+
fold={true}
53+
onChange={this.handleTextChange}
54+
value={this.text}
55+
/>,
4956
<br />,
5057
<limel-form
5158
onChange={this.handleFormChange}

0 commit comments

Comments
 (0)