?

CardGroup and Card

Grid of linked cards with icons for related articles and navigation.

componentcard
Edit on GitHub

Overview

CardGroup renders a responsive grid of Card components. Use it at the end of articles to link to related content. Each Card is a full-surface link with a lucide icon and hover arrow animation.

Props

CardGroup (container)

PropTypeDefaultDescription
cols2 | 32Number of columns at desktop breakpoint
childrenReactNodeOne or more <Card> elements

Card

PropTypeDefaultDescription
iconstring"file-text"Lucide icon name (kebab-case)
titlestringCard heading text
hrefstringLink destination
childrenReactNodeShort description text

Usage

MDX source

<CardGroup cols={2}>
  <Card icon="rocket" title="Article Title" href="/category/slug">
    Short description of the linked article.
  </Card>
</CardGroup>