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
[Linkify](https://linkify.js.org/) DOM Element Interface. Use `linkify-element` to detect URLs, email addresses and more within native HTML elements and replace them with anchor tags.
5
7
6
8
Note that `linkify-element` is included with `linkify-jquery`, so you do not have to install it if you are using `linkify-jquery`.
[Linkify](https://linkify.js.org/) HTML String Interface. Use `linkify-html` to detect URLs, email addresses and more in strings that contain HTML markup and replace them with anchor `<a>` tags.
[Linkify](https://linkify.js.org/) jQuery plugin. Also available in vanilla JavaScript via `linkify-element`. Use it to detect URLs, email addresses and more and wrap them with anchor `<a>` tags.
Copy file name to clipboardExpand all lines: packages/linkify-react/README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,9 @@
1
1
linkify-react
2
2
===
3
3
4
-
[Linkify](https://linkify.js.org/) React component. Walks through its children and replaces strings containing URLs with strings and <a> elements.
[Linkify](https://linkify.js.org/) React component. Use it to find URLs, email addresses and more in child strings and replace them with strings and <a> elements.
5
7
6
8
## Installation
7
9
@@ -23,6 +25,14 @@ import Linkify from 'linkify-react';
23
25
24
26
## Usage
25
27
28
+
```jsx
29
+
constcontents='helloworld.com';
30
+
31
+
<Linkify options={...}>
32
+
{contents}
33
+
</Linkify>
34
+
```
35
+
26
36
[Read the full documentation](https://linkify.js.org/docs/linkify-react.html).
0 commit comments