Back to components

Navigation

Context Menu Panel

A floating action menu for editor surfaces, AI workspaces, and command-rich tools.

menuactionsfloating

Installation

Copy and paste the code into your project.

Accessibility notes

For production, connect this panel to menu button semantics and keyboard navigation.

Preview accent

TypeScript
const actions = ["Duplicate", "Copy link", "Open in agent", "Archive"];

export function ContextMenuPanel() {
  return (
    <div className="w-56 rounded-lg border border-white/12 bg-[#0b0f14]/92 p-2 shadow-2xl backdrop-blur">
      {actions.map((action, index) => (
        <button
          key={action}
          className="flex w-full items-center justify-between rounded-md px-3 py-2 text-left text-sm text-slate-200 transition hover:bg-[#40E0D0]/10 hover:text-white"
          type="button"
        >
          <span>{action}</span>
          {index === 2 ? <span className="text-xs text-[#40E0D0]">new</span> : null}
        </button>
      ))}
    </div>
  );
}
Usage
<ContextMenuPanel />

Related components

Navigation

Floating Nav Dock

Intermediate

A pill-shaped navigation dock with translucent depth and compact labels.

navdockglass
View component
  1. 1Brief
  2. 2Design
  3. 3Code

Navigation

Progress Stepper

Intermediate

A horizontal stepper for onboarding, generation pipelines, and design workflows.

stepsprogressworkflow
View component

Navigation

Workflow Breadcrumb

Beginner

A pill breadcrumb for agent workspaces, release flows, and nested product tools.

breadcrumbworkflownav
View component