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

    704
  • Aero Hero-3

    Aero Hero-3

    612
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    553
  • Features

    Features

    529
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    485
  • Blogs

    Blogs

    403
  • Aero Hero-1

    Aero Hero-1

    376

More in Navigation

View all
  • Sidebar

    Sidebar

    386
  • Footer with Big Wordmark

    Footer with Big Wordmark

    6
  • Navbar

    Navbar

    10
  • Astryx Breadcrumb Item

    Astryx Breadcrumb Item

    1
  • Pagination

    Pagination

    106
  • Capsule Tabs

    Capsule Tabs

    23
  • Numberless Pagination with Text

    Numberless Pagination with Text

    12
  • Breadrcrumb

    Breadrcrumb

    8