react-tweet-card
v0.2.5
Published
A React component to display tweets
Downloads
725
Maintainers
Readme
react-tweet-card
A Tweet Card component you can use easily in your React projects. It doesn't rely on the Twitter API but instead lets you feed in all information about the tweet you're displaying. This way you can create cards for fictional tweets or tweets that have been deleted.
Installation
npm i react-tweet-card
# or
yarn add react-tweet-card
Features
- Responsive component
- Component scales to fit inside any container
- Light, dim and dark themes
- Dark mode preference support
- Gradient and blurred container styles
- styled-components and emotion support
- TypeScript support
- Support for images in tweet
- Support for verified and protected Twitter accounts
- Support for @mentions in tweet
- Support for links in tweet
- Support for hashtags in tweet
- Display number of replies, retweets and likes
Server-side rendering
react-tweet-card
can only be rendered on the client side as it loads its CSS directly into the DOM.
To make it work with SSR, try importing the package dynamically.
Design credits
Component layout is based on Tweety by Ashwin G