Pros
Easy to scan, clear visual balance, works great on tablets
Responsive grid layout for organizing any card components. Set columns (1-4) and let it handle breakpoints automatically.
CardGrid is your go-to layout component for displaying multiple cards. Set the column count (1-4) and it handles all responsive breakpoints automatically. Works with any card component: IconCard, TeamCard, TestimonialCard, etc.
Perfect for comparison layouts, feature pairs, or side-by-side content
The sweet spot for most layouts - balanced and scannable
Maximum density for feature highlights and icon grids
Responsive design
Full-width layout
Browser-compatible
Optimized performance
---
import CardGrid from '@theme/components/ui/CardGrid.astro';
import IconCard from '@theme/components/ui/IconCard.astro';
---
<CardGrid columns={3}>
<IconCard
icon="🎯"
title="Feature One"
description="Your feature description"
href="/feature-one/"
ctaText="Learn more"
/>
<IconCard
icon="🚀"
title="Feature Two"
description="Your feature description"
href="/feature-two/"
ctaText="Learn more"
/>
<IconCard
icon="💡"
title="Feature Three"
description="Your feature description"
href="/feature-three/"
ctaText="Learn more"
/>
</CardGrid> import CardGrid from '@theme/components/ui/CardGrid.astro';
import TeamCard from '@theme/components/ui/TeamCard.astro';
<CardGrid columns={3}>
<TeamCard
name="John Doe"
role="CEO"
image="/images/team/john.jpg"
bio="Company founder"
/>
<TeamCard
name="Jane Smith"
role="CTO"
image="/images/team/jane.jpg"
bio="Tech lead"
/>
<TeamCard
name="Bob Wilson"
role="Designer"
image="/images/team/bob.jpg"
bio="UI/UX expert"
/>
</CardGrid> columns - Number
of columns (1, 2, 3, or 4). Default: 3
Adapts from 1 to 4 columns based on screen size
Works with light and dark modes automatically
Semantic HTML with proper spacing
Pure CSS grid, no JavaScript required
Drop it into your pages and start organizing content in responsive grids.