Lotus
Type to search documentation.

Cards

Group related links and summaries with outline documentation cards.

Use CardGrid and Card for compact next-step links, feature summaries, and related resources. Cards use an outline style by default; linked cards add a soft hover background.

Import

import { Card, CardGrid } from '@prosefly/astro-components';

Example

<CardGrid>
<Card icon="lucide:settings" title="Configuration" href="/docs/configuration/project/">
Review theme settings and navigation structure.
</Card>
<Card icon="simple-icons:github" title="GitHub" href="https://github.com/prosefly/astro-theme-lotus" external>
Open the Lotus repository in a new tab.
</Card>
</CardGrid>

Outline Style

Cards are transparent by default. Only cards with href get hover styling.

Static summary

This card is not interactive, so it keeps the same outline treatment on hover.

Linked summary

This card has a destination, so it gets a soft hover background.

Props

CardGrid

PropTypeDefaultNotes
NoneCreates a one-column mobile grid that expands to two columns on medium screens.

Card

PropTypeDefaultNotes
titlestringoptionalHeading rendered at the top of the card.
hrefstringoptionalWhen provided, the card renders as an anchor.
externalbooleanfalseOpens linked cards in a new tab with rel="noreferrer".
iconstringoptionalIconify icon name rendered before the content.

Notes

Cards are intentionally lightweight. Keep content short and use one destination per linked card.

Last updated Jul 18, 2026

Contributors