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-previewor using yarn:
yarn add quick-link-previewUsage
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.