react-threads-card
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

react-threads-card

NPM

A Threads Card component you can use easily in your React projects. It doesn't rely on the Threads API but instead lets you feed in all information about the threads you're displaying. This way you can create cards for fictional Threads posts, or ones that have been deleted.



🧵 Demo and documentation


Installation

npm i react-threads-card
# or
yarn add react-threads-card

Features

  • Responsive component
  • Component scales to fit inside any container
  • Light and dark themes
  • Dark mode preference support
  • Gradient and blurred container styles
  • styled-components and emotion support
  • TypeScript support
  • Support for images in posts
  • Support for verified Threads accounts
  • Support for @mentions in posts
  • Support for links in posts
  • Support for hashtags in posts
  • Display number of replies, reposts and likes

Server-side rendering

react-threads-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.

Package Sidebar

Install

npm i react-threads-card

Weekly Downloads

1

Version

0.0.8

License

MIT

Unpacked Size

83 kB

Total Files

6

Last publish

Collaborators

  • zorapeteri