0.1.1 • Published 4 years ago

@app-elements/linkify v0.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

Linkify

Convert URLs found in a string to anchor elements.

Installation

npm install --save @app-elements/linkify

Usage

import { Linkify } from '@app-elements/linkify'

<Linkify text='Hey check this out, http://inputlogic.ca cool eh?' />

Props

PropTypeDefaultDescription
textStringnullString to convert found URLs to anchors
anchorPropsObject{}Props to pass down to each created anchor