JSPM

quick-link-preview

1.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q14772F
  • License MIT

A React component that previews links on hover.

Package Exports

  • quick-link-preview
  • quick-link-preview/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (quick-link-preview) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Quick Link Preview

A React component that previews links on hover.

Installation

You can install quick-link-preview via npm:

npm install quick-link-preview

or using yarn:

yarn add quick-link-preview

Usage

Import and use LinkPreviewer in your React project:

import LinkPreviewer from "quick-link-preview";

function App() {
  return (
    <div className="container">

      <LinkPreviewer url="https://en.wikipedia.org/wiki/Main_Page">
        <span>Wikipedia</span>
      </LinkPreviewer>

    </div>
  );
}

export default App;

Props

Prop Type Description
url string The URL of the link to preview.

Contributing

Feel free to open issues or submit pull requests to improve this package.

License

This project is licensed under the MIT License.