Rebar UI

1.0

opinion

ContextMenu

A menu that opens at the cursor on right-click, or on a long press on touch.

File tileRight-click or long-press the tile

depot-fascia-final.pdf

1.4 MB · Depot signage

With disabled items

mark-stacked.svg (read-only)

One item

van-livery-photos.zip

In context

Project filesEvery row carries its own menu

depot-fascia-final.pdf

1.4 MB

Depot signage

van-livery-photos.zip

48 MB

Harbour rebrand

interview-03-walkthrough.mp4

212 MB

Crew interviews

rota-export-march.csv

90 KB

Rota export

mark-stacked.svg

8 KB

Harbour rebrand

Props

PropTypeRequiredDefault
childrenReactNodeYes—
itemsContextMenuItem[]Yes—
openboolean | undefinedNo—
defaultOpenboolean | undefinedNo—
onOpenChange((open: boolean) => void) | undefinedNo—
longPressDelaynumber | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="context-menu" on the wrapper; the menu carries data-rebar-part="menu" | "item" | "separator", plus data-rebar-danger on destructive items.

Migrating to Ant Design

Not codemod-covered — AntD has no dedicated context-menu component of its own; its Dropdown supports a trigger={["contextMenu"]} mode that's the closest direct equivalent on migration.