Installation
Usage
Server Component (Next.js 13+)
Client Component
Props
TweetCard (Server)
The Twitter/X tweet ID to display
Additional CSS classes to apply
ClientTweetCard (Client)
The Twitter/X tweet ID to display
Additional CSS classes to apply
Features
- Server-side and client-side rendering support
- Displays tweet text with proper entity formatting
- Shows author information and verification badges
- Supports images, videos, and carousels
- URL preview cards
- Responsive design
- Dark mode compatible
Examples
With Image Carousel
Tweets with multiple images display as a scrollable carousel.With URL Preview
Tweets with links show rich preview cards.Notes
- Built on top of React Tweet
- Automatically handles tweet loading and errors
- Shows skeleton loader while fetching
- Displays “Tweet not found” for invalid IDs