Skip to content

Commit 15175c9

Browse files
committed
upd
1 parent 174dcf1 commit 15175c9

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,30 @@ React textarea: easy, transparent textarea component for ReactJS (autoheight, ad
1212
https://sm-react.github.io/react-smart-textarea/
1313

1414
## Usage
15-
import SmartTextarea from './SmartTextarea.jsx';
15+
~~~jsx
16+
import SmTextarea from 'SmartTextarea.jsx';
17+
~~~
18+
#### simple
19+
~~~jsx
20+
<SmTextarea
21+
onChange={(e) => console.log(e)}
22+
/>
23+
~~~
24+
25+
#### set hint text
26+
~~~jsx
27+
<SmTextarea
28+
onChange={(e) => console.log(e)}
29+
hintText="enter text here"
30+
/>
31+
~~~
32+
33+
#### some style
34+
~~~jsx
35+
<SmTextarea
36+
style={{border: "solid 1px rgb(169, 169, 169)", padding: {4}, paddingLeft: {8}, …}}
37+
styleMouseOver={{}}
38+
styleFocus={{outlineColor: "rgb(77, 144, 254)", outlineOffset: {-2}, outlineStyle: "auto", …}}
39+
hintText="chrome style"
40+
/>
41+
~~~

0 commit comments

Comments
 (0)