Skip to content

Commit bc1f234

Browse files
committed
cards and callouts
1 parent 637d90b commit bc1f234

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

content/components/callouts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Use callouts to add eye-catching context to your content'
44
icon: 'circle-exclamation'
55
---
66

7-
Callouts can be styled as notes, warnings, information, tips, or checks:
7+
Callouts can be styled as a Note, Warning, Info, Tip, or Check:
88

99
### Note Callouts
1010

content/components/card-groups.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: 'Show cards side by side in a grid format'
44
icon: 'rectangles-mixed'
55
---
66

7-
The `CardGroup` component lets you group multiple `Card` components together. It's most often used to put multiple cards on the same column.
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.
88

99
<CardGroup cols={2}>
1010
<Card title="First Card" icon="square-1">

content/components/cards.mdx

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ icon: "rectangle"
2424
```
2525
</RequestExample>
2626

27-
28-
2927
### Horizontal Card
3028

3129
Add a `horizontal` property to a card to make it horizontally displayed.
@@ -42,6 +40,24 @@ Add an `img` property to a card to display an image on the top of the card.
4240
Here is an example of a card with an image
4341
</Card>
4442

43+
### Link Card
44+
45+
You can customize the CTA and whether or not you show the arrow on the card.
46+
47+
<Card title="Link card" icon="link" href="/content/components/card-groups" arrow="true" cta="Click here">
48+
This is how you use a card with an icon and a link. Clicking on this card
49+
brings you to the Card Group page.
50+
</Card>
51+
52+
<RequestExample>
53+
```jsx Card Example
54+
<Card title="Link card" icon="link" href="/content/components/card-groups" arrow="true" cta="Click here">
55+
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.
57+
</Card>
58+
```
59+
</RequestExample>
60+
4561
## Props
4662

4763
<ResponseField name="title" type="string" required>
@@ -70,4 +86,12 @@ Add an `img` property to a card to display an image on the top of the card.
7086

7187
<ResponseField name="img" type="string">
7288
The url or local path to an image to display on the top of the card
89+
</ResponseField>
90+
91+
<ResponseField name="cta" type="string">
92+
Label for the action button
93+
</ResponseField>
94+
95+
<ResponseField name="arrow" type="boolean">
96+
Enable or disable the link arrow icon
7397
</ResponseField>

0 commit comments

Comments
 (0)