🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

react-autolinker

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
r

react-autolinker

React Component that wraps Autolinker.js

1.0.7
latest
70

Supply Chain Security

100

Vulnerability

70

Quality

76

Maintenance

100

License

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Issues
3

react-autolinker

React component that wraps Autolinker.js

Usage

const text = 'Foo http://google.com bar http:/twitter.com baz http//google.com'

// Basic
<ReactAutolinker text={text} />

// With options (passes through to Autolinker.js EXCEPT `replaceFn`
const options = {className: 'foo'}
<ReactAutolinker text={text} options={options} />

// With custom tag name for the component (default is div)
<ReactAutolinker text={text} tagName='p' />

// Custom per link render (default implementation shown)
const renderLink = (tag) => React.createElement(tag.tagName, tag.attrs, tag.innerHtml)
<ReactAutolinker text={text} renderLink={renderLink} />

FAQs

Package last updated on 11 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts