Skip to content
Merged
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
14 changes: 14 additions & 0 deletions content/components/cards.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ icon: "rectangle"
</Card>
```

```jsx Image Card Example
<Card title="Image Card" img="/images/card-with-image.png">
Here is an example of a card with an image
</Card>
```

</RequestExample>

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

### Image Card

Add an `img` property to a card to display an image on the top of the card.

<Card title="Image Card" img="/images/card-with-image.png">
Here is an example of a card with an image
</Card>

## Props

<ResponseField name="title" type="string" required>
Expand Down