Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

Cards

<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.

<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>
Quickstart

Publish your first site in five minutes.

Components

Icon on the left.

Brand color

Custom icon color.

Images and horizontal cards

<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>

Card props

titlestring
Card title.
iconicon
Icon; can also be JSX (such as <img />).
hrefurl
Makes the whole card a link. Source file paths (./quickstart.mdx) are recommended.
targetstring
Link target; external links default to _blank.
iconPositiontop | leftDefault top
Icon position.
iconSizenumberDefault 8
Icon size in 4px steps (default 8 = 32px).
colorcolor
Icon color (for both light and dark mode).
lightModeColor / darkModeColorcolor
Icon color for light / dark mode respectively.
srcurl
Card image (img and image also work).
imagePositiontop | left | right | bottomDefault top
Image position.
imageWidth / imageHeightstring
Image size, e.g. 200px, 50%.
horizontalbooleanDefault false
Compact horizontal layout: icon and title on one line.
ctastring
Call-to-action text at the bottom of the card, such as "Read the docs".
arrowboolean
Show an arrow in the top-right corner.
iconTypesolid | regular | brandsDefault 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.

CardGroup props

colsnumberDefault 2
Number of columns, 1–4 (columns also works).