Lens Blocks are currently in beta and not ready for production use!

Link Preview Component

A component to display a link preview for URLs included in Lens posts, showing the title, description, and image.

Installation

Usage

The LinkPreview component is used to display a preview of a link. Because of CORS restrictions, the component requires a server to proxy the request. When installing this component a /url-meta API route is created.

import { LensLinkPreview } from "@/components/feed/link-preview";
<LinkPreview url="https://lens.xyz" />