Skip to content

Commit bdd5ef9

Browse files
committed
fix: import
1 parent 1f01837 commit bdd5ef9

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

docs/examples/textarea-allow-clear.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-disable no-console */
2-
import Input from '@rc-component/input';
2+
import { TextArea } from '@rc-component/input';
33
import React, { useState, type ChangeEvent } from 'react';
44

5-
const TextArea = Input.TextArea;
6-
75
export default function App() {
86
const [value, setValue] = useState('hello\nworld');
97

docs/examples/textarea-auto-size.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-disable no-console */
2-
import Input, { type TextAreaProps } from '@rc-component/input';
2+
import { TextArea, type TextAreaProps } from '@rc-component/input';
33
import React, { useState, type ChangeEvent } from 'react';
44

5-
const TextArea = Input.TextArea;
6-
75
export default function App() {
86
const [value, setValue] = useState('hello\nworld');
97

docs/examples/textarea-basic.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
/* eslint-disable no-console */
2-
import Input, { type TextAreaProps } from '@rc-component/input';
2+
import { TextArea, type TextAreaProps } from '@rc-component/input';
33
import React, { useState, type ChangeEvent, type KeyboardEvent } from 'react';
44

5-
const TextArea = Input.TextArea;
6-
75
export default function App() {
86
const [value, setValue] = useState('');
97

docs/examples/textarea-show-count.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/* eslint-disable no-console */
2-
import Input from '@rc-component/input';
2+
import { TextArea } from '@rc-component/input';
33
import React, { useState, type ChangeEvent } from 'react';
44
import '../../assets/index.less';
55

6-
const TextArea = Input.TextArea;
7-
86
export default function App() {
97
const [value, setValue] = useState('hello\nworld');
108

0 commit comments

Comments
 (0)