Bloques

Card

Add a bordered tile with a title, body text, icon, and link to another page.

Use a card as a navigational tile to another page. Write the card's text as its content. Wrap multiple cards in <Columns> to lay them out in a responsive grid.

Quickstart

Get from zero to a live docs site in under five minutes.

Go to content
<Card title="Quickstart" href="/quickstart" icon="rocket">
  Get from zero to a live docs site in under five minutes.
</Card>

Props

PropTypeDefault
titlestringNone
hrefstring (absolute URL or path starting with /)None
iconIcon name"default"
iconColor"gray" | "green" | "yellow" | "red" | "orange" | "blue""gray"
ctastring (link label when href is set)"Go to content"

The description prop is deprecated. It still renders, so existing pages keep working, but write the card's text as its content instead.

Variants

With icon

Editor overview

Tour the editor layout and the save-and-publish flow.

Go to content
<Card title="Editor overview" href="/editor/overview" icon="note">
  Tour the editor layout and the save-and-publish flow.
</Card>

With icon color

Deployments

Every push to the default branch ships.

Go to content
<Card
  title="Deployments"
  href="/publishing/deployments"
  icon="rocket"
  iconColor="blue"
>
  Every push to the default branch ships.
</Card>

Custom CTA

Connect GitHub

Install the GitHub App and link a repo.

Set it up
<Card
  title="Connect GitHub"
  href="/publishing/connect-github"
  icon="branch"
  cta="Set it up"
>
  Install the GitHub App and link a repo.
</Card>

Card group

Wrap two or more cards in <Columns> to lay them out in a responsive grid. Columns collapse on narrow screens.

Editor overview

Go to content

Components

Go to content
<Columns cols="2">
  <Card title="Editor overview" href="/editor/overview" icon="pencil" />
  <Card title="Components" href="/editor/components" icon="component" />
</Columns>