---
title: "Cards"
subtitle: "<Card> and <CardGroup> for navigation and overviews, with icons, images and links."
---

Cards are for navigation and overviews. Set `href` to make the whole card clickable; `<CardGroup>` (alias `<Cards>`) lays cards out in a 1–4 column grid that collapses to a single column on narrow screens.

```mdx
<CardGroup cols={3}>
  <Card title="Quickstart" icon="lucide:rocket" href="/guides/get-started/quickstart">
    Publish your first site in five minutes.
  </Card>
  <Card title="Components" icon="lucide:blocks" iconPosition="left">
    Icon on the left.
  </Card>
  <Card title="Brand color" icon="lucide:palette" color="#7C5CFF">
    Custom icon color.
  </Card>
</CardGroup>
```

<CardGroup cols={3}>
  <Card title="Quickstart" icon="lucide:rocket" href="../get-started/quickstart.mdx">
    Publish your first site in five minutes.
  </Card>
  <Card title="Components" icon="lucide:blocks" iconPosition="left">
    Icon on the left.
  </Card>
  <Card title="Brand color" icon="lucide:palette" color="#7C5CFF">
    Custom icon color.
  </Card>
</CardGroup>

## Images and horizontal cards

```mdx
<CardGroup cols={2}>
  <Card title="Build pipeline" src="/assets/pipeline.svg" href="/guides/get-started/concepts">
    From source files to static output.
  </Card>
  <Card title="Horizontal card" icon="lucide:terminal" horizontal arrow href="/guides/reference/cli" cta="View CLI">
    horizontal, arrow, and cta.
  </Card>
</CardGroup>
```

<CardGroup cols={2}>
  <Card title="Build pipeline" src="/assets/pipeline.svg" href="../get-started/concepts.mdx">
    From source files to static output.
  </Card>
  <Card title="Horizontal card" icon="lucide:terminal" horizontal arrow href="../reference/cli.mdx" cta="View CLI">
    horizontal, arrow, and cta.
  </Card>
</CardGroup>

## Card props

<ParamField path="title" type="string">Card title.</ParamField>
<ParamField path="icon" type="icon">Icon; can also be JSX (such as `<img>`).</ParamField>
<ParamField path="href" type="url">Makes the whole card a link. Source file paths (`./quickstart.mdx`) are recommended.</ParamField>
<ParamField path="target" type="string">Link target; external links default to `_blank`.</ParamField>
<ParamField path="iconPosition" type="top | left" default="top">Icon position.</ParamField>
<ParamField path="iconSize" type="number" default="8">Icon size in 4px steps (default 8 = 32px).</ParamField>
<ParamField path="color" type="color">Icon color (for both light and dark mode).</ParamField>
<ParamField path="lightModeColor / darkModeColor" type="color">Icon color for light / dark mode respectively.</ParamField>
<ParamField path="src" type="url">Card image (`img` and `image` also work).</ParamField>
<ParamField path="imagePosition" type="top | left | right | bottom" default="top">Image position.</ParamField>
<ParamField path="imageWidth / imageHeight" type="string">Image size, e.g. `200px`, `50%`.</ParamField>
<ParamField path="horizontal" type="boolean" default="false">Compact horizontal layout: icon and title on one line.</ParamField>
<ParamField path="cta" type="string">Call-to-action text at the bottom of the card, such as "Read the docs".</ParamField>
<ParamField path="arrow" type="boolean">Show an arrow in the top-right corner.</ParamField>
<ParamField path="iconType" type="solid | regular | brands" default="solid">The Font Awesome style to use when `icon` is just a name: `solid`, `regular` (outline) or `brands`; `light`, `thin` and `duotone` show as outline. No effect when `icon` has full class names (such as `fa-regular fa-bell`) or is a `lucide:` icon.</ParamField>

## CardGroup props

<ParamField path="cols" type="number" default="2">Number of columns, 1–4 (`columns` also works).</ParamField>
