You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,6 @@ import ReactDOM from 'react-dom'
12
12
13
13
ReactDOM.render(
14
14
<InputHints
15
-
waitBeforeDeleteMs={2000}
16
-
writeSpeedMs={100}
17
-
deleteSpeedMs={60}
18
15
placeholders={[
19
16
'Enter your username here...',
20
17
'Usernames can be 7-18 characters long.',
@@ -23,6 +20,18 @@ ReactDOM.render(
23
20
)
24
21
```
25
22
23
+
## Component's ref API
24
+
25
+
The component implements an API that makes it possible to interact with the DOM node itself. Use [`ref`](https://facebook.github.io/react/docs/refs-and-the-dom.html)s to access these methods.
26
+
27
+
### `focus()`
28
+
29
+
Brings focus on the input element.
30
+
31
+
### `blur()`
32
+
33
+
Removes focus from the input element.
34
+
26
35
## Installation
27
36
28
37
```sh
@@ -52,6 +61,10 @@ Same as `writeSpeedMs` (see above), but for when deleting characters.
52
61
53
62
Use the [`selector:placeholder`](http://css-tricks.com/snippets/css/style-placeholder-text/) CSS pseudo-class to style your placeholders!
0 commit comments