Package Exports
- linklens
- linklens/dist/main.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 (linklens) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
LinkLens
LinkLens is a lightweight package that detects links inside comments or chat messages, highlights them, and optionally generates rich previews with thumbnails, titles, and descriptions.
Installation
npm install linklens --forceUsage
"use client";
import LinkLens from "linklens";
export default function Example() {
return (
<main>
<LinkLens
content={"Hi ✋ there https://github.com/DeveloperAromal follow my github account for more 😎"}
highlightLink={true}
previewCard={true}
linkColor="green"
/>
</main>
);
}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
content |
string |
"" |
The text that may contain URLs (e.g. "Check this https://example.com") |
highlightLink |
boolean |
true |
Highlights the link text inside the content |
previewCard |
boolean |
false |
Shows a preview card with title, description, and image |
linkColor |
string |
"blue" |
CSS color for highlighted links |
Features
- Detects and highlights links in text
- Optionally generates rich previews (thumbnails, titles, descriptions)
- Lightweight and easy to use
License
This project is licensed under the MIT License.
See the LICENSE file for details.
MIT License © 2025 Aromal