---
title: "Cards and columns"
description: "Link to other pages with Card, lay cards out with CardGroup or Columns, and show a preview with Tile."
---

A card is a box with an icon, a title and some text. Put it in a `CardGroup` to set the cards side by side.

- [Quickstart](/get-started/quickstart): Publish your first site.

- [Write pages](/write/pages): The icon sits beside the text.

```mdx
<CardGroup cols={2}>
  <Card title="Quickstart" icon="bolt" href="/get-started/quickstart" cta="Start">
    Publish your first site.
  </Card>
  <Card title="Write pages" icon="file-text" href="/write/pages" horizontal>
    The icon sits beside the text.
  </Card>
</CardGroup>
```

`bolt` is a Font Awesome name, shown as Lucide's `zap`. See [icons](/components/overview#icons).

## Tile

A tile shows a preview, such as an image or an icon, above a title and a short description.

- [Pages](/write/pages)

- [Components](/components/overview)

```mdx
<CardGroup cols={2}>
  <Tile title="Pages" description="MDX files in your repo" href="/write/pages">
    <Icon icon="file-text" size={40} />
  </Tile>
</CardGroup>
```

## Card props

- `title` (string): The card's title.

- `icon` (string): A Lucide or Font Awesome name, or an image path.

- `color` (string): The icon's color, as hex, a color name, or `rgb()` or `hsl()`.

- `href` (string): Makes the whole card a link.

- `img` (string): An image across the top of the card.

- `horizontal` (boolean, default: `false`): Puts the icon beside the text.

- `cta` (string): The call to action shown with an arrow after it. It shows only when the card has an `href`.

- `arrow` (boolean, default: `false`): With `href`, shows the arrow even without a `cta`.

## CardGroup and Columns props

`Columns` is the same component as `CardGroup`.

- `cols` (number, default: `2`): Columns across, from 1 to 4. Phones always show one.

## Tile props

- `title` (string): The title under the preview.

- `description` (string): A line of text under the title.

- `href` (string): Makes the whole tile a link.
