Tweet Card

A presentational tweet-style card. Pass your own name, handle, avatar, and text— or use the SonoJS defaults.

Default

Static card with the bundled @_sonojs avatar and Introducing SonoJS copy.

Loading…

Installation

CLI
npx @sonojs/ui@latest add tweet-card

Usage

page.tsx
import { TweetCard } from "@/components/tweet-card"

export default function Page() {
  return <TweetCard />
}

Props

PropTypeDefaultDescription
namestring"SonoJS"Display name.
handlestring"_sonojs"Handle without `@`.
avatarstringbundled avatarProfile image URL.
textReactNodeIntroducing SonoJS…Tweet body content.
profileUrlstring"https://x.com/_sonojs"Link for the avatar and name.
hrefstringIntroducing post URLLink for the X icon.
verifiedbooleantrueShow the verified badge.
classNamestring—Extra classes on the card root.