Skip to content

Commit de7d48e

Browse files
authored
adding image card example back as we fixed the bug (#290)
1 parent 02dafe2 commit de7d48e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

content/components/cards.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ icon: "rectangle"
1818
</Card>
1919
```
2020

21+
```jsx Image Card Example
22+
<Card title="Image Card" img="/images/card-with-image.png">
23+
Here is an example of a card with an image
24+
</Card>
25+
```
26+
2127
</RequestExample>
2228

2329
### Horizontal Card
@@ -28,6 +34,14 @@ Add a `horizontal` property to a card to make it horizontally displayed.
2834
Here is an example of a horizontal card
2935
</Card>
3036

37+
### Image Card
38+
39+
Add an `img` property to a card to display an image on the top of the card.
40+
41+
<Card title="Image Card" img="/images/card-with-image.png">
42+
Here is an example of a card with an image
43+
</Card>
44+
3145
## Props
3246

3347
<ResponseField name="title" type="string" required>

0 commit comments

Comments
 (0)