preview-link-js
v2.1.2
Published
JavaScript module to scrape site data and generate a link preview popup
Downloads
7
Maintainers
Readme
Install
npm i preview-link-js
Import component and include your scraper link:
import PreviewLink from 'preview-link-js'
...
<PreviewLink scraper="https://node-link-scraper.herokuapp.com/" ...></PreviewLink>
Usage
- Include your link via
href
, and your display text as innerHTML
<PreviewLink href="https://www.npmjs.com/package/preview-link-js"> preview-link-js </PreviewLink>
- You can also edit the
class
andstyle
fields
<PreviewLink class="preview-link-js" style={{ fontWeight:"500" }}> preview-link-js </PreviewLink>
License
MIT License