Card
Present a short topic or destination.
On this page
Writing pages
Author content in Markdown or MDX.
View code
import Card from "@chitrank2050/monoline-docs/components/Card.astro";
<Card
title="Writing pages"
description="Author content in Markdown or MDX."
/>Usage
Use the default slot for supporting content. Linked cards must not contain nested interactive controls.
Linked card
View code
import Card from "@chitrank2050/monoline-docs/components/Card.astro";
<Card
title="Deployment"
href="/deployment"
description="Publish the generated static files."
/>API reference
| Name | Type | Default | Description |
|---|---|---|---|
title | string | Required | Card heading. |
description | string | — | Supporting text. |
href | string | — | Turns the card into a LinkCard. |
Behavior and accessibility
A linked card is one link. Do not place other links or buttons inside it. Use a descriptive title that explains the destination.