Skip to main content

Props

NameDescriptionTypeDefault valueRequired/Optional
authorInformation about the author user of the postRequired
  - usernameThreads handle of the authorstringRequired
  - imageURL to the profile picture of the authorstringRequired
  - verifiedIndicates whether the author is verifiedbooleanfalseOptional
textThe text of the post itselfstringRequired
time

Time of posting. If passed in as a Date object, it will be formatted as it is on Threads

Date | stringRequired
permalink

The URL for the post (or anything, it's up to you). Clicking the Threads logo or the time of posting on the card will take you to this URL.

stringOptional
imagesImages in the postArray<{ src, alt? }>Optional
  - srcSource URL for the imagestringRequired
  - altAlt description for the imagestringOptional
engagement

The number of engagements (replies, reposts, likes) the post has received

{ replies?, reposts?, likes? }Optional
  - repliesNumber of repliesnumber0Optional
  - repostsNumber of repostsnumber0Optional
  - likesNumber of likesnumber0Optional
clickableProfileLink

Creates a clickable visual effect on the name and profile picture of the author. If turned on, clicking these elements will open the user's profile on Threads.

booleanfalseOptional
showTimeControls wheter the time of the post should be displayedbooleantrueOptional
showEngagementControls wheter the engagements of the post should be displayedbooleantrueOptional
themeThe theme setting for the card"light" | "dark""light"Optional
colorsGives you the option to override the colors used in the card{ primary, secondary, accent, muted, background, border }{}Optional
gradientBackgroundSets the card's background to gradientbooleanfalseOptional
blurredBackgroundSets the card's background to blurredbooleanfalseOptional

Try them out on this playground:

Live Editor
<ThreadsCard
  className="with-background-image"
  author={{
    username: 'ketchup.jessi',
    image: 'img/ketchup.jessi.jpg',
    verified: false,
  }}
  text="how do 21 pilots even fit in the cockpit fr"
  time={new Date('2024-11-09T21:13:00Z')} // try a string instead!
  permalink="https://www.threads.net/@ketchup.jessi/post/DCKk_pDpwhA"
  engagement={{
    likes: 1300,
    reposts: 86,
    replies: 26,
  }}
  theme="light"
  colors={{}}
  gradientBackground={false}
  blurredBackground={false}
  clickableProfileLink={false}
  showEngagement={true}
  showTime={true}
/>
Result
Loading...