Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 8 additions & 8 deletions components/cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ description: "Highlight main points or links with customizable icons"
icon: 'square-mouse-pointer'
---

<Card title="Card Title" icon="text" href="/components/card-groups">
<Card title="Card Title" icon="text" href="/components/columns">
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Card Group page.
brings you to the Columns page.
</Card>

<RequestExample>
```jsx Card Example
<Card title="Click on me" icon="text" href="/components/card-group">
<Card title="Click on me" icon="text" href="/components/columns">
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Card Group page.
brings you to the Columns page.
</Card>
```

Expand Down Expand Up @@ -48,25 +48,25 @@ You can customize the CTA and whether or not to display the arrow on the card. B
<Card
title="Link card"
icon="link"
href="/components/card-groups"
href="/components/columns"
arrow="true"
cta="Click here"
>
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Card Group page.
brings you to the Columns page.
</Card>

<RequestExample>
```jsx Card Example
<Card
title="Link card"
icon="link"
href="/components/card-groups"
href="/components/columns"
arrow="true"
cta="Click here"
>
This is how you use a card with an icon and a link. Clicking on this card
brings you to the Card Group page.
brings you to the Columns page.
</Card>
```
</RequestExample>
Expand Down
10 changes: 5 additions & 5 deletions components/card-groups.mdx → components/columns.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ description: 'Show cards side by side in a grid format'
icon: 'columns-2'
---

The `CardGroup` component lets you group multiple `Card` components together. It's most often used to put multiple cards in a grid, by specifying the number of grid columns.
The `Columns` component lets you group multiple `Card` components together. It's most often used to put multiple cards in a grid, by specifying the number of grid columns.

<CardGroup cols={2}>
<Columns cols={2}>
<Card title="First Card" icon="panel-left-close">
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
</Card>
<Card title="Second Card" icon="panel-right-close">
Lorem ipsum dolor sit amet, consectetur adipiscing elit
</Card>
</CardGroup>
</Columns>

<RequestExample>

```jsx Card Group Example
<CardGroup cols={2}>
<Columns cols={2}>
<Card title="First Card">
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
</Card>
<Card title="Second Card">
Lorem ipsum dolor sit amet, consectetur adipiscing elit
</Card>
</CardGroup>
</Columns>
```

</RequestExample>
Expand Down
2 changes: 1 addition & 1 deletion docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"components/accordions",
"components/callouts",
"components/cards",
"components/card-groups",
"components/columns",
"components/code-groups",
"components/examples",
"components/expandables",
Expand Down