structyl

Context Menu

stable

A menu triggered by right-click or long-press.

Basic usage

Right-click here

Examples

Rich context menu

Include labels, separators, and checkbox items.

Right-click for actions

File context menu

ContextMenu supports nested actions, checkboxes and radio groups from a right-click surface.

Right-click a file row

Features

  • Submenus, checkable items.
  • Full keyboard navigation.

Installation

bash
pnpm dlx structyl add context-menu

API Reference

Context Menu API reference

Full props, types, defaults, and all 15 parts.

View API
Context Menu | structyl