Ravi Katiyar

Card Grid

Cards 106

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

    3K
  • Minimalist Hero

    Minimalist Hero

    2.8K
  • 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
  • Photo Deck

    Photo Deck

    47
  • Folded Card

    Folded Card

    45
  • Statistics Card 10

    Statistics Card 10

    304
  • Statistics Card 2

    Statistics Card 2

    309
  • Statistics Card 7

    Statistics Card 7

    336
  • CTA Section

    CTA Section

    6
  • Liquid Glass Card

    Liquid Glass Card

    198