Back to components
ComponentMockupFree

X Post Mockup React component

A realistic X (Twitter) post with a verified badge, media image, and interactive like/retweet/bookmark actions with live counts.

About the X Post Mockup component

X Post Mockup is a free recreation of a post on X (formerly Twitter). It shows the avatar, display name, verified badge, @handle and X logo, then the post text, an optional image, and the time and date. At the bottom is a row of reply, repost, like, views, bookmark and share actions with counts.

Pass username, handle, userAvatar, tweetText, mediaImage, repliesCount, retweetsCount, likesCount, viewsCount (default 5,600,000, shown as 5.6M), timePosted and datePosted. theme is "dark" by default, or "light". Repost, like and bookmark are toggle buttons with aria-pressed: they change color and add one to their count. allowLike, allowRetweet and allowBookmark turn each one off.

When to use it

Use it for testimonials, launch announcements and social proof sections, where a quote looks more credible in the familiar post layout.

For a quote without platform styling, use Blockquote or Testimonial Wall.

Installation

Add the X Post Mockup component to your project with the shadcn CLI. It lands in components/x-post-mockup.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/x-post-mockup

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install clsx tailwind-merge

More Mockup components

TikTok Post Mockup
Free
Instagram Post Mockup
Free
LinkedIn Post Mockup
Free
Browser Mockup
Free
iPad Mockup Carousel
Phone Mockup
Free