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
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,8 @@ A lightweight package to toggle password visibility on click of the icon. you ne
18
18
-**inputRef** - this is required props , here you need to supply ref of password input field as this prop val,
19
19
-**showIcon** - default value for this field is "Show", but here you can pass cutsom funtion which return html of the image tag or icon tag or any icon or text which you want to show.
20
20
-**hideIcon** - defaut value fot this fied is "Hide", here also you can provide callback function same as the showIcon if you want to render icon or something else as per your need.
21
-
**here is snippet for your ref**
21
+
22
+
### Here is snippet for showing icon
22
23
### Code
23
24
24
25
```js
@@ -35,10 +36,10 @@ as per above code you need to follow three steps:
35
36
- create input and give assign ref to it and place it in div which we have created in previous step
36
37
- now import react-password-toggle-icon place it in same div and pass inputRef prop whose value is set to inputfield ref
0 commit comments