Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Navigation Menu examples · Marketing

Case Studies & Testimonials Navigation Menu for React

A Success Stories dropdown with four customer quotes, each with a logo, a rating and a link to the case study.

Framework
UI library

Success Stories opens four customer cards, each with a logo, a five-star rating, a short quote and Read case study. Social proof in the header reaches people before they find the customers page.

Preview

Preview width

Installation

Sign in to get your install command
Free with an account. It carries your token, so the CLI installs everything in one go.

FAQ

What is each card?

A whole NavigationMenuLink: an Avatar with the company's logo and initials as fallback, the name, five stars, the quote and Read case study with an arrow.

How is the rating announced?

The stars are hidden from assistive tech and a visually hidden Rated 5 out of 5 follows them. They are filled with the warning token so they follow the theme.

What happens on narrow screens?

The panel is w-[700px] with max-w-full, so it never grows past the screen, but its columns get tight. Below the md breakpoint, show the same links in a Sheet or a Drawer instead.

How do the links use my router?

Each link is your router's link rendered through NavigationMenuLink, so it keeps the menu's styles and focus handling. NavigationMenuLink takes the Next.js Link through render, as in render={<Link href="#" />}.

How does the menu work from the keyboard?

Tab moves between the triggers and the links, Enter or Space opens a trigger's panel, and Escape closes it and returns focus to the trigger. The root is a nav, so screen readers list it as a navigation landmark.

How do I mark the current page?

Set aria-current="page" on the NavigationMenuLink that matches the route, and style it with the aria-[current=page]: variant. active on NavigationMenuLink sets it for you.