Cards

Display linked content as a grid of cards

Last updated March 17, 2026

Cards

A grid of clickable cards for navigation or feature highlights.

Usage

Use the cards code fence. Each card is defined with # Title, a description line, and an optional link (line starting with /).

```cards
# Getting Started
Learn the basics of Petit
/getting-started/overview

# Configuration
Set up your project config
/getting-started/configuration

# Markdown
Write beautiful documentation
/reference/markdown
```

Example

API Reference

Card Properties
PropertyTypeDefaultDescription
titlestringrequiredCard heading (from `# Title` line)
descriptionstring-Description text (first line after title)
hrefstring-Link URL (line starting with `/`)

Search Documentation

Search for pages and content