1.3.0 • Published 4 years ago

react-autolinker-wrapper v1.3.0

Weekly downloads
81
License
MIT
Repository
github
Last release
4 years ago

react-autolinker-wrapper

React component which automatically converts URLs, email addresses, phone numbers, Twitter handles and hashtags in a string to HTML anchors.

Build Status Coverage Status Greenkeeper badge

Install

npm install react-autolinker-wrapper --save

Usage

import AutolinkerWrapper from 'react-autolinker-wrapper'
...
<AutolinkerWrapper
  tagName="span"
  text="Documentation at https://github.com/gvas/react-autolinker-wrapper"
  options={{
    newWindow: true,
    stripPrefix: false,
  }} />

Example

Properties

  • tagName: The wrapper element's tag name, default is div.
  • text: The text to autolink.
  • options: The options to invoke Autolinker with.

Credits

Gregory Jacobs' Autolinker.js library.

1.3.0

4 years ago

1.2.0

5 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.0.1

6 years ago