Cnippet

Menu

Navigation 2

About

An accessible dropdown menu built on Base UI with support for items, links, checkboxes, radio groups, submenus, separators and keyboard shortcuts.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Menu to your project and fits it to your theme.

Code

How Menu is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Link from "next/link";
import { Button } from "@/components/ui/button";
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "@/components/ui/menu";

export default function Particle() {
  return (
    <Menu>
      <MenuTrigger render={<Button variant="outline" />}>Open menu</MenuTrigger>
      <MenuPopup>
        <MenuItem render={<Link href="/docs" />}>Docs</MenuItem>
        <MenuItem render={<Link href="/particles" />}>Particles</MenuItem>
      </MenuPopup>
    </Menu>
  );
}

Dependencies

More by Cnippet

View all
  • Team

    Team

    1.3K
  • Davincho Hero-1

    Davincho Hero-1

    686
  • Aero Hero-3

    Aero Hero-3

    579
  • Features

    Features

    515
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    501
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    470
  • Blogs

    Blogs

    398
  • Aero Hero-1

    Aero Hero-1

    364

More in Navigation

View all
  • Sidebar

    Sidebar

    294
  • Progress Bar Stepper

    Progress Bar Stepper

    42
  • Tabs

    Tabs

    16
  • Navbar

    Navbar

    1
  • Breadcrumb

    Breadcrumb

    102
  • Capsule Tabs

    Capsule Tabs

    21
  • Pagination

    Pagination

    91
  • Pagination

    Pagination

    27