Skip to content

Top Nav Mega Menu Featured Card

@astryxdesign/core v0.7.1 · TopNavMegaMenuFeaturedCard

Props ​

PropTypeDefaultDescription
titlestring—Card title. Required.
descriptionstring—Description text below the title.
hrefstring—Makes the whole card a link. With linkLabel, the link moves to the CTA at the bottom instead.
imagestring—Optional image URL displayed above the body.
imageAltstring—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.
linkLabelstring—CTA link text, rendered at the bottom of the card. Needs linkHref or href.
linkHrefstring—CTA link URL. Falls back to href.
asNavLinkComponent'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.