Card
Use the Card component in your MDX documentation
Usage
Add it to your MDX components.
See Markdown for usages.
Cards
The container of cards.
Card
Based on Next.js <Link />
.
Prop | Type | Default |
---|---|---|
prefetch | boolean | `true` |
icon | ReactNode | - |
replace | boolean | `false` |
external | boolean | - |
href | string | - |
description | string | - |
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