Card
Display a card with a title and optional icon.
You can use the Card
component to display a card with a title and optional icon.
Usage
With Icon
Pass an icon component to the icon
prop to display an icon in the card.
Link Card
Pass the href
prop to convert the card into a link.
A card with a link
You can use markdown in here, just ensure to include a space between the component and the content
in your Markdown file.
Without Icon
If you don't want to use an icon, just don't pass the icon
prop.
A card without an icon
You can use markdown in here, just ensure to include a space between the component and the content in your Markdown file.
Horizontal
You can use the horizontal
prop to display the card horizontally.
A horizontal card
You can use markdown in here, just ensure to include a space between the component and the content in your Markdown file.
Props
title
type: string
The title to display in the card.
required
icon
type: Component
The icon to display in the card.
href
type: string
If provided, the card will become a link. The target
is handled automatically based on what the href
starts with. External links will open in a new tab, and internal links will open in the current tab.
children
type: Snippet
The body content of the card.