2.1.2 • Published 5 years ago
preview-link-js v2.1.2
Install
npm i preview-link-jsImport 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
classandstylefields
<PreviewLink class="preview-link-js" style={{ fontWeight:"500" }}> preview-link-js </PreviewLink>License
MIT License