Skip to content

Commit f41b71b

Browse files
authored
Columns docs update (#695)
* Replace `CardGroup` with `Columns` * Rename file & update links
1 parent 0c93e14 commit f41b71b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

components/cards.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ description: "Highlight main points or links with customizable icons"
44
icon: 'square-mouse-pointer'
55
---
66

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

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

@@ -48,25 +48,25 @@ You can customize the CTA and whether or not to display the arrow on the card. B
4848
<Card
4949
title="Link card"
5050
icon="link"
51-
href="/components/card-groups"
51+
href="/components/columns"
5252
arrow="true"
5353
cta="Click here"
5454
>
5555
This is how you use a card with an icon and a link. Clicking on this card
56-
brings you to the Card Group page.
56+
brings you to the Columns page.
5757
</Card>
5858

5959
<RequestExample>
6060
```jsx Card Example
6161
<Card
6262
title="Link card"
6363
icon="link"
64-
href="/components/card-groups"
64+
href="/components/columns"
6565
arrow="true"
6666
cta="Click here"
6767
>
6868
This is how you use a card with an icon and a link. Clicking on this card
69-
brings you to the Card Group page.
69+
brings you to the Columns page.
7070
</Card>
7171
```
7272
</RequestExample>

components/card-groups.mdx renamed to components/columns.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,28 @@ description: 'Show cards side by side in a grid format'
44
icon: 'columns-2'
55
---
66

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

9-
<CardGroup cols={2}>
9+
<Columns cols={2}>
1010
<Card title="First Card" icon="panel-left-close">
1111
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
1212
</Card>
1313
<Card title="Second Card" icon="panel-right-close">
1414
Lorem ipsum dolor sit amet, consectetur adipiscing elit
1515
</Card>
16-
</CardGroup>
16+
</Columns>
1717

1818
<RequestExample>
1919

2020
```jsx Card Group Example
21-
<CardGroup cols={2}>
21+
<Columns cols={2}>
2222
<Card title="First Card">
2323
Neque porro quisquam est qui dolorem ipsum quia dolor sit amet
2424
</Card>
2525
<Card title="Second Card">
2626
Lorem ipsum dolor sit amet, consectetur adipiscing elit
2727
</Card>
28-
</CardGroup>
28+
</Columns>
2929
```
3030

3131
</RequestExample>

docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"components/accordions",
5050
"components/callouts",
5151
"components/cards",
52-
"components/card-groups",
52+
"components/columns",
5353
"components/code-groups",
5454
"components/examples",
5555
"components/expandables",

0 commit comments

Comments
 (0)