The menu on right-click (or long-press). A square floating card with a hairline and an elevated shadow, like the dropdown menu otherwise.
Source: src/components/ui/context-menu.tsx
import { CopyIcon, DownloadIcon, PencilIcon } from "@/components/icons/mage";
import {
ContextMenu,
ContextMenuContent,
ContextMenuItem,
ContextMenuLabel,
ContextMenuSeparator,
ContextMenuTrigger,
} from "@/components/ui/context-menu";
export default function ContextMenuExample() {
return (
<ContextMenu>
<ContextMenuTrigger className="grid h-32 w-64 place-items-center rounded-xl border border-dashed border-separator-strong text-callout text-label-secondary">
Right-click here
</ContextMenuTrigger>
<ContextMenuContent>
<ContextMenuLabel>Request</ContextMenuLabel>
<ContextMenuItem>
<PencilIcon />
Edit brief
</ContextMenuItem>
<ContextMenuItem>
<CopyIcon />
Copy link
</ContextMenuItem>
<ContextMenuSeparator />
<ContextMenuItem>
<DownloadIcon />
Download files
</ContextMenuItem>
</ContextMenuContent>
</ContextMenu>
);
}LogoContextMenu wraps the logos in the navbar, the footer and here: copy the logo or the wordmark as SVG, confirmed with a toast.
import { Logo } from "@/components/shared/logo";
import { LogoContextMenu } from "@/components/shared/logo-context-menu";
export default function ContextMenuLogo() {
return (
<LogoContextMenu>
<span className="inline-flex">
<Logo variant="wordmark" className="h-10" />
</span>
</LogoContextMenu>
);
}