UIPin
ComponentsIconsIllustrationsMotionTemplatesApps
Boards
UIPin

Free, open-source UI components, icons, illustrations, motion, templates and apps, in one search. Every item links to its source and licence.

UIPin is free. If it saved you time, you can keep it running:

Buy me a coffee
ComponentsIconsIllustrationsMotionTemplatesAppsLibrariesCompareNew this weekMCP for agentsBoardsPrivacy

Components, icons and artwork belong to their authors and are shown under their open-source licences.

Magic UI/Client Tweet Card

Cards
1 of 2
Compiling

Theme it

Every preview, live

Brand colour

Corner radius

Font

Recolours shadcn’s tokens, Tailwind’s accent colours and colours set in the code. Red, amber and green classes stay, since they usually mean error, warning or success.

2 versions·1 libraryCompare all cards →

  • Client Tweet Card
  • Tweet Card

Client Tweet Card

A client-side version of the tweet card that displays a tweet with the author's name, handle, and profile picture.

npx shadcn@latest add https://magicui.design/r/client-tweet-card.json
Open in v0 Docs Repo
Library
Magic UI
License
MIT
Stack
React · Tailwind CSS
Packages
react-tweet
Also adds
tweet-card
Size
31 lines
Demo
From Magic UI

Code

registry/magicui/client-tweet-card.tsx

"use client"

import { useTweet, type TweetProps } from "react-tweet"

import {
  MagicTweet,
  TweetNotFound,
  TweetSkeleton,
  type TweetLogo,
} from "@/registry/magicui/tweet-card"

export const ClientTweetCard = ({
  id,
  apiUrl,
  fallback = <TweetSkeleton />,
  components,
  fetchOptions,
  onError,
  ...props
}: TweetProps & { className?: string; logo?: TweetLogo }) => {
  const { data, error, isLoading } = useTweet(id, apiUrl, fetchOptions)

  if (isLoading) return fallback
  if (error || !data) {
    const NotFound = components?.TweetNotFound ?? TweetNotFound
    return <NotFound error={onError ? onError(error) : error} />
  }

  return <MagicTweet tweet={data} {...props} />
}

More like this

Tweet Card

Magic UI·Cards

Spending Ring

Kokonut UI·Inputs & forms

Notification Stack

Kokonut UI·Feedback & loaders

Animated List

Magic UI·Data display

Faq 1

SmoothUI·Data display

Hero Video Dialog

Magic UI·Inputs & forms

Toolbar

Kokonut UI·Navigation

Header 4

SmoothUI·Navigation

Github Inline Comments

Eldora UI·Other

Features 3

SmoothUI·Cards

Pricing 1

SmoothUI·Cards

Bento Grid

Magic UI·Cards

Border Beam Button

Cult UI·Backgrounds

Cutout Card

Cult UI·Cards

Testimonials 3

SmoothUI·Cards