StealThis .dev

Tweet Card

Styled card resembling an embedded tweet/X post with avatar, display name, handle, text, and engagement metrics.

Open in Lab
css javascript vue svelte
Targets: TS JS HTML React Vue Svelte

Code

Tweet Card

A styled card component that mimics an embedded tweet/X post. Includes avatar, display name, handle, tweet text, timestamp, and engagement metrics (likes, retweets, replies).

How it works

  1. Pure HTML/CSS layout with flexbox for the header and metrics
  2. Avatar is loaded via an <img> tag or CSS background
  3. Metrics are laid out in a horizontal row with SVG icons
  4. Dark theme styling matches the X/Twitter dark mode aesthetic

Customization

  • Pass different user data (name, handle, avatar URL)
  • Customize tweet text content
  • Set engagement numbers (likes, retweets, replies)
  • Add verified badge with a boolean flag

When to use it

  • Social proof sections on landing pages
  • Testimonial displays
  • Social media dashboards