Skip to content

shadcn.io is an independent project built on shadcn/ui

Product Showcase with CTA Navigation Menu for React

A Products dropdown with AI Studio, Automation Suite, and Analytics Pro beside a Get Started panel and two buttons.

The bar shows Products. The panel lists AI Studio, Automation Suite, and Analytics Pro, each with an icon and a description, beside Get Started, Start Free Trial, and View Pricing.

Use the side panel when sign-up should sit next to the products. A Button in the page header is enough when there is only one next step. In React, Base UI closes the open panel when you press Escape.

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.
Use email insteadNo credit card

Anatomy

Navigation Menu anatomy: list, trigger, indicator, content, link

Usage

<div className="w-full max-w-md rounded-md border bg-background p-px">
  <NavigationMenu>
    <NavigationMenuList>
      <NavigationMenuItem>
        <NavigationMenuTrigger>Products</NavigationMenuTrigger>
        <NavigationMenuContent>
          <div className="grid w-[600px] max-w-full grid-cols-[2fr_1fr] gap-4 p-2">
            <div className="flex flex-col gap-1">
              {products.map((product) => (
                <NavigationMenuLink
                  className="items-start gap-2"
                  key={product.label}
                  render={<Link href={product.href} />}
                >
                  <product.icon
                    aria-hidden="true"
                    className="mt-0.5 size-5"
                  />
                  <div className="flex flex-col gap-0.5">
                    <span className="font-medium">{product.label}</span>
                    <span className="text-muted-foreground">
                      {product.description}
                    </span>
                  </div>
                </NavigationMenuLink>
              ))}
            </div>
            <div className="flex flex-col gap-3 rounded-lg bg-muted p-4">
              <div className="flex flex-col gap-2">
                <h4 className="font-semibold">Get Started</h4>
                <p className="text-muted-foreground text-sm">
{/* The rest of the file is under Installation. */}

FAQ

How is the panel split?

A two-column grid, grid-cols-[2fr_1fr]: the product links take two thirds, the call-to-action panel one third.

Do the buttons go anywhere?

Not in the demo: they are Buttons with no handler. Make them links to your sign-up and pricing pages, the way each library composes a button with a link.

What happens on narrow screens?

The panel is w-[600px] 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.

API Reference

Navigation Menu

No extra props in this demo. The rest is on the Navigation Menu page.

Button

Sets variant="outline". The rest is on the Button page.