Ravi Katiyar

Card Grid

Cards 104

About

Article Card Grid This component displays a title and a responsive grid of article cards. It's designed to be easily populated with data via props, making it highly reusable for different sections of your application, such as blog post listings, feature showcases, or resource centers.

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

Code

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

Usage.tsx

import React from 'react';
import { ArticleCardGrid } from '@/components/ui/card-grid'; // Adjust the import path as needed

const ArticleCardGridDemo = () => {
  // Sample data for the article cards
  const articles = [
    {
      id: 1,
      imageSrc: 'https://cdn.21st.dev/assets/mirror/01/018551b29fd418d21297adfd4bce7264094e0a8c035b1410b559e2ca43c47dac.jpg',
      title: 'How to reduce the carbon footprint of business travel',
      linkText: 'See how',
      linkHref: '#',
    },
    {
      id: 2,
      imageSrc: 'https://cdn.21st.dev/assets/mirror/d8/d853679affe99c59ca7a6c562d4dc04c48cf114813272787171e5e5b1324b8ad.jpg',
      title: 'The perks and benefits your employees want now',
      linkText: 'Find out',
      linkHref: '#',
    },
    {
      id: 3,
      imageSrc: 'https://cdn.21st.dev/assets/mirror/dd/dd9ff83a61f8fc04c30f637608c7d1ab827e8893815894fcdbac74a44888b625.jpg',
      title: 'The road to sustainability: executives discuss their efforts toward net zero',
      linkText: 'Keep reading',
      linkHref: '#',
    },
  ];

  return (
    <div className="flex items-center justify-center w-full bg-background">
      <ArticleCardGrid title="Interested in learning more?" articles={articles} />
    </div>
  );
};

export default ArticleCardGridDemo;

Dependencies

More by Ravi Katiyar

View all
  • Animated Shader Hero

    Animated Shader Hero

    3.8K
  • Hero

    Hero

    3.4K
  • Circular Gallery

    Circular Gallery

    2.9K
  • Minimalist Hero

    Minimalist Hero

    2.7K
  • Glass Calendar

    Glass Calendar

    2K
  • Floating Icons Hero Section

    Floating Icons Hero Section

    2K
  • Feature Carousel

    Feature Carousel

    1.8K
  • AI Image Generator Hero

    AI Image Generator Hero

    1.5K

More in Cards

View all
  • Course Design Cards

    Course Design Cards

    1.3K
  • Statistics Card 7

    Statistics Card 7

    327
  • Statistics Card 2

    Statistics Card 2

    305
  • Interactive Tech Stack Bento Grid with Hover Effects

    Interactive Tech Stack Bento Grid with Hover Effects

    625
  • Card Studio

    Card Studio

    5
  • The Item one

    The Item one

    4
  • Weather Card

    Weather Card

    65
  • Card

    Card

    9