Component libraryContext menu
Components/Navigation

Context menu

Pro

A native-trigger context menu with bounded portal content, keyboard navigation, typeahead, action items and real link items.

npx shadcn@latest add @tidal-pro/context-menu
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/context-menu

Import components/ui/tidal.css, components/ui/context-menu.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.

Usage

Complete example source · Dependency and asset manifest

Loading the complete example…

API & behavior

TidalContextMenu forwards optional open/onOpenChange state, direction and modal behavior while adding an explicit light/dark portal theme. When open is omitted, Radix manages trigger-driven open state; there is no defaultOpen prop. TidalContextMenuTrigger always renders a 44px native type=button with forwarded attributes/ref; disabled or aria-disabled true resolve native disabled behavior and explicit false is preserved. TidalContextMenuContent forwards Radix content attributes/ref, loop, collision, Escape, outside and autofocus contracts; its optional portalContainer remains consumer-owned. The trigger adds caller-preventable native ContextMenu and Shift+F10 keyboard opening. Radix supplies pointer/long-press opening, keyboard focus movement, typeahead, dismissal and trigger focus return. TidalContextMenuItem forwards action item attributes/ref, disabled, textValue and caller-preventable onSelect. TidalContextMenuLinkItem renders a real consumer-owned anchor, forwards its native attributes/ref, preserves modified/download/target navigation, and resolves either item disabled or anchorProps aria-disabled true before any consumer click handler while preserving explicit false. Label and Separator forward native primitive attributes/refs. Consumers own every action, route and state change; the component performs no file, network, storage or backend operation.

Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.

Building with an agent?Give it the installation guide and component catalog.