amankaushik481

Blog Card

Component

About

A linked article preview card with a 16:9 cover image, tag, relative publish date, title and a two-line clamped excerpt, for blog indexes and related-posts lists.

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

Code

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

Usage.tsx

import { BlogCard } from "@/components/ui/blog-card";

export default function BlogCardDemo() {
  return (
    <div className="grid w-full max-w-sm gap-6 p-6">
      <BlogCard
        href="/blog/close-books-faster"
        title="Close the books in two days"
        excerpt="How Northwind cut month-end reporting from a week down to two days by automating reconciliation."
        image="https://cdn.21st.dev/assets/mirror/c9/c93aab334a2e18107ce2901c3d31f74af89f04f825216b456801445557bbc0fd.jpg"
        tag="Finance"
        date={new Date(Date.now() - 1000 * 60 * 60 * 5)}
      />
    </div>
  );
}

More by amankaushik481

View all
  • Icon Button

    Icon Button

    14
  • Background Boxes

    Background Boxes

    12
  • Chip Filter

    Chip Filter

    8
  • Typing Text

    Typing Text

    7
  • Treemap Chart

    Treemap Chart

    6
  • File Dropzone

    File Dropzone

    5
  • Emoji Picker

    Emoji Picker

    4
  • Morphing Text

    Morphing Text

    2