logo
Lens Quick Widgets

Post

Display a single Lens Protocol post with rich formatting, media support, and interactive features like liking, reposting, and commenting.

Configurator

Example: 121frwetbr02new3gvk

Characters to show before 'show more' button

Upvotes
Comments
Reposts
Quotes
Bookmarks
Collects
Tips
Like
Repost
Comment
Component Code:
import { Post, Theme } from "lens-quick-widgets"

<Post 
  postId="121frwetbr02new3gvk"
  theme={Theme.default}
  
  showStats={true}
  showFollow={true}
  showUnfollowButton={false}
  showHeyButton={false}
  contentPreviewLimit={400}
  visibleStats={["upvotes", "comments", "reposts"]}
  visibleButtons={["like", "repost", "comment"]}
  onLike={(post) => console.log("Post liked:", post.id)}
  onRepost={(post) => console.log("Post reposted:", post.id)}
  onComment={(post) => console.log("Comment on post:", post.id)}
  onClick={(post) => console.log("Post clicked:", post.id)}
/>
Embed Code:
<iframe 
  src="https://lens-quick-widgets-web.vercel.app/embed/post?postId=121frwetbr02new3gvk&theme=default&visibleStats=upvotes%2Ccomments%2Creposts&visibleButtons=like%2Crepost%2Ccomment" 
  width="100%" 
  height="auto" 
  style={{border: 'none'}}>
</iframe>

Preview