NuxtLegoNuxtLego

Static Tweet

Primitive component to render static tweet.

Nuxt

Nuxt

@nuxt_js

Nuxt 3.5 is out โœจ ๐Ÿ”ฅ Vue 3.3 and Nitro 2.4 ๐Ÿ› Interactive Server Components ๐Ÿ’ช Types Routing ๐Ÿ‘‰ ... and much more nuxt.com/blog/v3-5
1.1K Reply
Read 34 replies

Anatomy

<template>
  <LegoTweet :tweet-id="tweetId">
    <LegoTweetUser v-slot="{ user }" />
    <LegoTweetText />

    <LegoTweetMedia />
    <LegoTweetSummaryCard v-slot="{ title, description, domain }" />

    <LegoTweetCreatedAt />
    <LegoTweetTerms />

    <LegoTweetAction>
      <LegoTweetActionLove v-slot="{ favorite_count }" />

      <LegoTweetActionReply />
      <LegoTweetActionCopy />
    </LegoTweetAction>

    <LegoTweetReplies />
  </LegoTweet>
</template>

API Reference

Root

Wrapper that provide the information required for the child component.

PropDefaultTypesDescription
tweetId-stringID of the tweet you want to render