Skip to content

ContextMenu

A floating right-click context menu array deployed directly relative to the cursor position.

Basic Usage

Wrap any target container with <NeoContextMenu>. Upon a right-click inside the borders of that wrapper, the browser's default menu is squelched and the sharp-cornered Neobrutalist custom UI takes its place.

loading

API

Props

PropertyTypeDefaultDescription
optionsArray<{ label?, action?, disabled?, divider? }>[]The array of menu object definitions to map over.

Option Interface

KeyTypeDescription
labelstringThe text identifying the action.
actionFunctionThe callback executed on click. Bypassed if disabled.
disabledbooleanDulls out the element.
dividerbooleanIf true, renders a solid black line separator instead of a real menu item.

MIT License