lailai0916

Share Card

Cards 3

About

A clickable link-preview card that shows a title, description and either a thumbnail image or an auto-detected source icon (GitHub, X, YouTube, etc.) for a shared URL.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Share Card to your project and fits it to your theme.

Code

How Share Card is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import ShareCard from "@/components/ui/share-card";

export default function ShareCardDemo() {
  return (
    <div
      style={{
        background: "var(--lk-background-color)",
        color: "var(--lk-font-color-base)",
        padding: "2rem",
        minHeight: "320px",
        display: "flex",
        alignItems: "center",
        justifyContent: "center",
      }}
    >
      <div style={{ width: "100%", maxWidth: 420 }}>
        <ShareCard
          url="https://github.com/lailai0916/ui"
          title="laikit UI"
          description="React components and design tokens for consistent websites."
        />
      </div>
    </div>
  );
}

More by lailai0916

View all
  • Window Panel

    Window Panel

    12
  • Dialog

    Dialog

    2
  • Data Card

    Data Card

  • Traffic Lights

    Traffic Lights

  • Window Bar

    Window Bar

  • Tabs

    Tabs

  • Scrollable Data Table

    Scrollable Data Table

  • Skip Link

    Skip Link

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Stats cards with links

    Stats cards with links

    97
  • Statistics Card 7

    Statistics Card 7

    334
  • Photo Deck

    Photo Deck

    23
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    675
  • Approval Card

    Approval Card

    33
  • Edge Cluster Status Card

    Edge Cluster Status Card

  • Card

    Card

    73