# react-autolinker

> React Component that wraps Autolinker.js

Latest version **1.0.7** (published 2018-06-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-autolinker
pnpm add react-autolinker
yarn add react-autolinker
bun add react-autolinker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-06-11 |
| First published | 2015-10-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 8.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Moudy |
| Maintainers | moudy |
| Keywords | react, autolinker |

## Links

- npm: https://www.npmjs.com/package/react-autolinker
- Repository: https://github.com/moudy/react-autolinker
- Homepage: https://github.com/moudy/react-autolinker#readme
- Issues: https://github.com/moudy/react-autolinker/issues
- npm.io page: https://npm.io/package/react-autolinker

## Dependencies (2)

- [autolinker](https://npm.io/package/autolinker.md) 0.19.1
- [prop-types](https://npm.io/package/prop-types.md) 15.5.10

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.7 (latest) — 2018-06-11
- 1.0.6 — 2018-05-09
- 1.0.5 — 2017-10-06
- 1.0.4 — 2017-04-27
- 1.0.2 — 2015-10-30
- 1.0.1 — 2015-10-30
- 1.0.0 — 2015-10-29

## README

# react-autolinker

React component that wraps [Autolinker.js](https://github.com/gregjacobs/Autolinker.js)

#### Usage

```js
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} />
```

---
_Source: https://npm.io/package/react-autolinker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
