Card
Use the Card component in your MDX documentation
Usage
Add it to your MDX components.
Cards
The container of cards.
Card
Based on <Link />
.
Prop | Type | Default |
---|---|---|
prefetch | boolean | `true` |
icon | ReactNode | - |
replace | boolean | `false` |
external | boolean | - |
href | string | - |
description | string | - |
Example
Pass the href, title and description.
With Icons
Tree Shaking
If you're using Contentlayer, or other libraries for rendering MDX, ensure that tree shaking is working properly.
Most of the icon libraries support importing icons individually.
As a workaround, you can pass icons to MDX Components too.
Last updated on