Cards & Card group

Linked cards with icons. The right component for hubs, indexes, and 'where to go next' sections.

Cards are visual links — a title, a description, an icon, and a destination. Card groups arrange them in a grid. Use them for the homepage of a section, "next steps" blocks at the end of pages, and any place readers need to pick from a small set of options.

Example: a 2-column card group#

Source#

MDX
<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/get-started/quickstart">
    Five minutes to a live docs site.
  </Card>
  <Card title="Components" icon="layout-grid" href="/components/overview">
    Every block you can drop into a page.
  </Card>
</CardGroup>

Props#

<CardGroup>#

PropTypeDefaultDescription
cols1, 2, 3, 42Columns at desktop widths. Always 1 column on mobile.

<Card>#

PropTypeDescription
titlestringBold title at the top of the card
iconstringLucide icon name (e.g., rocket, terminal, globe) — see icon picker
hrefstringDestination — internal path or external URL
childrencontentDescription text shown below the title

A single card (no group)#

A <Card> works on its own — useful for a single CTA in the middle of a page.

Trial Pro features for 14 days

Custom domain, AI generation, and analytics — no payment info required.

Available icons#

icon accepts any Lucide icon name in kebab-case. Common ones:

rocket, code, terminal, book, users, globe, palette, layout-grid, list-ordered, image, zap, sparkles, credit-card, command, settings, help-circle, alert-circle, check, arrow-right.

If you pick an icon Dokly doesn't recognize, you'll see a placeholder square in the editor — switch to a real Lucide name.

When to use Cards#

SituationUse
Hub page (homepage of a section)CardGroup with 4–8 cards
"Where to go next" at the end of a pageCardGroup with 2–4 cards
Single highlighted CTABare <Card>
Linking sub-pages of the current sectionCardGroup
Linking unrelated external resourcesBullet list of links, not Cards

Cards are heavy visually — every card you add competes for attention. If you have more than 8 options, use a list.

Where next#