Top Nav Mega Menu Featured Card
@astryxdesign/core v0.7.1 · TopNavMegaMenuFeaturedCard
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Card title. Required. |
description | string | — | Description text below the title. |
href | string | — | Makes the whole card a link. With linkLabel, the link moves to the CTA at the bottom instead. |
image | string | — | Optional image URL displayed above the body. |
imageAlt | string | — | Alt text for the image. When omitted, the image is explicitly decorative (alt="", role="presentation", aria-hidden), usually correct since the card already has a visible title. Provide it only when the image conveys information beyond the title and description. |
linkLabel | string | — | CTA link text, rendered at the bottom of the card. Needs linkHref or href. |
linkHref | string | — | CTA link URL. Falls back to href. |
as | NavLinkComponent | 'a' | Link root used by the card and the CTA. Only used when there is a URL. |
Slots
default: custom content rendered below the standard body.