Module: Shadcn::ContextMenu

Extended by:
Parts
Defined in:
app/components/shadcn/context_menu.rb,
app/components/shadcn/context_menu/preview.rb,
app/components/shadcn/context_menu/component.rb,
app/components/shadcn/context_menu/sub/component.rb,
app/components/shadcn/context_menu/content/component.rb,
app/components/shadcn/context_menu/trigger/component.rb,
app/components/shadcn/context_menu/sub_content/component.rb

Overview

The ContextMenu family.

Measured against dropdown-menu.tsx: the two files declare the same fifteen slots, and eleven of them carry byte-identical class strings once the prefix is normalised. So most of this family is the dropdown's, restamped — the same relationship Sheet has with Dialog here, and the reason both are driven by one controller rather than two.

The four that differ: label gains text-foreground; content reads --radix-context-menu-* rather than --radix-dropdown-menu-*; sub-trigger spells the chevron's size through its own [&_svg…]:size-4 instead of on the icon; and trigger is the area you right-click rather than a button.

Defined Under Namespace

Modules: Content, Sub, SubContent, Trigger Classes: Component, Preview

Method Summary

Methods included from Parts

part