Skip to content

Latest commit

 

History

History
142 lines (92 loc) · 4.62 KB

README.md

File metadata and controls

142 lines (92 loc) · 4.62 KB

Twitter Post Mockup


https://twitter-post-mockup.vercel.app/

Parameters

Query Parameter Default Description Examples
username John Doe Full user name to display -
verified true Disables the Twitter Verified badge false
handle johndoe User's twitter handle without @ -
text Lorem Ipsum Tweet's content -
hashtags twittermockup Tweets hashtags without # ootd,food
date 00:00 AM Jan 01, 2022 Date Text to display -
os iPhone Text to display: Twitter for {os} Android, Windows
retweets 100k Text to display for number of retweets 100, 1M
quotes 50k Text to display for number of quote 100, 1M
likes 300k Text to display for number of likes 100, 1M
w 778 Width of the svg -
h 600 Height of the svg -
theme light Theme of the post light, dim, dark

theme

https://twitter-post-mockup.vercel.app/api?theme=dim

https://twitter-post-mockup.vercel.app/api?theme=dark

username

?username=Elon%20Musk

verified

?verified=false

handle

?handle=ElonMusk

text

?text=I%20want%20to%20go%20to%20space

hashtags

?hashtags=ootd,food

date

WARNING! The date parameter is not validated!

?date=This%20is%20not%20a%20valid%20date

os

?os=Android

retweets

?retweets=1M

quotes

?quotes=1M

likes

?likes=1M

height

WARNING: The bounding box of the tweet does not adapt to the height, but the image will use up as much space as you give it. Use this only when the image itself uses up to much space or when parts of the tweet are cut off.

?h=1000

width

WARNING: The bounding box of the tweet does adapt to the width and the image will use up as much space as you give it. The height of the tweet hugs the height of the content.

?w=1000