Unified, accessible dropdown menu component for navigation and actions.
// Source: https://github.com/TailAdmin/free-nextjs-admin-dashboard | License: MIT | Copyright 2023 TailAdmin
// Provided via justclaw.it.com; keep this notice with the code.
"use client";
import { CheckIcon, ChevronRightIcon } from "@/icons";
import { cn } from "@/utils";
import { Menu as MenuPrimitive } from "@base-ui/react/menu";
import * as React from "react";
function DropdownMenu({ ...props }: MenuPrimitive.Root.Props) {
return <MenuPrimitive.Root data-slot="dropdown-menu" {...props} />;
}
function DropdownMenuPortal({ ...props }: MenuPrimitive.Portal.Props) {
return <MenuPrimitive.Portal data-slot="dropdown-menu-portal" {...props} />;
}
function DropdownMenuTrigger({ ...props }: MenuPrimitive.Trigger.Props) {
return <MenuPrimitive.Trigger data-slot="dropdown-menu-trigger"
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key