Lens Blocks are currently in pre-alpha and not ready for use!

Post Block

Displays a post from Lens Social Protocol, including the content, author, attachments, and engagement actions.

A basic text-only Post

Open in

Installation

Usage

import { LensPostProvider } from "@/lib/lens-post-context";
import { LensPost } from "@/components/lens-post";
import { useSessionClient } from "@lens-protocol/react";
import { useWalletClient } from "wagmi";
const { data: session } = useSessionClient();
const { data: wallet } = useWalletClient();
<LensPostProvider postId={postId} sessionClient={session} walletClient={wallet}>
  <LensPost />
</LensPostProvider>

Examples

Image Post

Audio Post

Video Post