Skip to content

A React component for converting URLs in a given string of text into clicking link tags.

License

Notifications You must be signed in to change notification settings

OpenGov/react-autolink-text

Repository files navigation

<AutoLinkText />

build status

A React component for converting URLs in a given string of text into clicking link tags.

Installation

npm install react-autolink-text

Usage

import ReactDOM from 'react-dom';
import AutoLinkText from 'react-autolink-text';

ReactDOM.render(
  <AutoLinkText text="Check out this cool component: https://github.com/OpenGov/react-autolink-text" />,
  document.body
);

Thanks

Thank you to @gregjacobs for creating Autolinker.js from which this component was based.

About

A React component for converting URLs in a given string of text into clicking link tags.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •