NuxtLegoNuxtLego

Static Tweet

Primitive component to render static tweet.

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