shadcn-labs

Post Card

Cards

About

A compound blog post card that shows a cover image, category, title, excerpt, tags, author and a read-more button, with default, compact, horizontal and covered layout variants.

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

Code

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

Usage.tsx

"use client";

import { PostCard, PostCardContent } from "@/components/ui/post-card";

export default function PostCardHorizontalDemo() {
  return (
    <PostCard appearance={{ variant: "horizontal" }}>
      <PostCardContent />
    </PostCard>
  );
}

More by shadcn-labs

View all
  • Email Progress Bar

    Email Progress Bar

    6
  • PDF Section

    PDF Section

  • PDF Badge

    PDF Badge

  • PDF Stack

    PDF Stack

  • Markdown Toolbar

    Markdown Toolbar

  • Rich Text Editor

    Rich Text Editor

  • Coupons With Centered Text

    Coupons With Centered Text

  • Stripe Receipt Email

    Stripe Receipt Email

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Weather Card

    Weather Card

    67
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 10

    Statistics Card 10

    304
  • Photo Deck

    Photo Deck

    50
  • Stats cards with links

    Stats cards with links

    100
  • Icon Link Card

    Icon Link Card

    43
  • Documentation Link Card

    Documentation Link Card

    34