Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion components/cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,22 @@ You can customize the call-to-action text and control whether an arrow appears.
</Card>
```

### Cards with nested links

Cards with an `href` can contain links in their content. Clicking a nested link navigates to that link's destination, while clicking anywhere else on the card navigates to the card's `href`. Text inside cards is selectable.

<Card title="Card with nested link" icon="link" href="/components/columns">
Learn more in the [Columns documentation](/components/columns). Clicking this link navigates
directly, while clicking elsewhere on the card also navigates to the Columns page.
</Card>

```mdx Card with nested link
<Card title="Card with nested link" icon="link" href="/components/columns">
Learn more in the [Columns documentation](/components/columns). Clicking this link navigates
directly, while clicking elsewhere on the card also navigates to the Columns page.
</Card>
```

## Group cards

Use the [Columns component](/components/columns) to organize multiple cards side by side. The Columns component supports one to four columns and automatically adjusts for smaller screens.
Expand Down Expand Up @@ -111,7 +127,7 @@ Use the [Columns component](/components/columns) to organize multiple cards side
</ResponseField>

<ResponseField name="href" type="string">
URL to navigate to when the card is clicked.
URL to navigate to when the card is clicked. Links inside the card's content navigate independently—clicking a nested link goes to that link's destination, while clicking elsewhere on the card navigates to this URL.
</ResponseField>

<ResponseField name="horizontal" type="boolean">
Expand Down
Loading