XDSTopNavMegaMenuFeaturedCard@xds/core · TopNav
Preview coming soon

Usage

TopNav is a horizontal navigation bar for product-level navigation in application headers. Use TopNav for 5 or fewer always-visible navigation items, or minimal navigation paired with search and controls. For complex navigation hierarchies, use a sidebar; to filter content, use tabs or filter buttons instead.

Best practices

GuidancePractices
DoInclude a product logo and name in the heading slot to clearly identify the application.
DoLimit primary navigation items to 5 or fewer for quick scanning and minimal cognitive load.
Don'tAvoid using TopNav to filter page content — use Tabs or filter controls instead.
Don'tAvoid deeply nested navigation hierarchies — keep menus to one level of depth.

Anatomy

ElementDescription
Product icon and namerequiredIdentifies the product in the navigation bar.
Navigation itemsrequiredPrimary links for product-level destinations.
More menuOverflow menu for additional navigation items.
Flex areaFlexible region for search, primary action buttons, or other controls.

Import

ts
import {XDSTopNavMegaMenuFeaturedCard} from '@xds/core/TopNav'

Props

PropTypeDescription
titlerequired
stringCard title.
description
stringDescription text below the title.
image
stringOptional image URL displayed above the body.
imageAlt
stringAlt text for the image.
linkLabel
stringCTA link text.
linkHref
stringCTA link URL.
children
ReactNodeCustom content rendered below the standard body.

Showcase source

tsx
'use client';
import {XDSTopNavMegaMenuFeaturedCard} from '@xds/core/TopNav';
export default function TopNavMegaMenuFeaturedCardShowcase() {
return (
<XDSTopNavMegaMenuFeaturedCard
title="Introducing v2.0"
description="Our biggest release yet with new components, faster builds, and a refreshed design language."
linkLabel="Explore the release"
linkHref="#release"
/>
);
}