LinkedCard

Card-style navigation links for related content

LinkedCard

A styled card component that wraps navigation links, useful for creating visually appealing navigation to related pages or external resources.

Usage

Use the ::LinkedCard MDC syntax with a to or href attribute:

::LinkedCard{to="/docs/getting-started"}
**Getting Started**

Learn the basics of using the documentation layer.
::

Getting Started

Learn the basics of using the documentation layer.

For internal pages, use the to attribute:

::LinkedCard{to="/docs/components/button"}
**Button Component**

Explore button variants and usage patterns.
::

For external URLs, use the href attribute with target="_blank":

::LinkedCard{href="https://nuxt.com" target="_blank"}
**Nuxt Documentation**

Visit the official Nuxt documentation.
::

Multiple Cards

Create a grid of cards using markdown:

::LinkedCard{to="/docs/components/callout"}
**Callout**

Display alerts and notifications.
::

::LinkedCard{to="/docs/components/tabs"}
**Tabs**

Organize content in tabbed sections.
::

::LinkedCard{to="/docs/components/steps"}
**Steps**

Create step-by-step guides.
::

Props

The component accepts all NuxtLink props:

PropTypeDefaultDescription
tostring | RouteLocation-Internal route destination
hrefstring-External URL
targetstring-Link target (_blank, etc.)
classstring-Additional CSS classes

Slots

SlotDescription
defaultCard content (supports markdown)

Styling

The component provides:

  • Surface background color with hover effect
  • Rounded corners with padding
  • Centered flex layout
  • Smooth transition animations