mui / mui/base-ui

[context menu] Support detached trigger

Open
#3,746 0 comments 2 reactions 1 assignee Claimed by @michaldudak View on GitHub
component: context menu type: new feature
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
1d 20h
Merged PRs (30d)
101

Description

# Feature request

## Summary

Menu component does have this feature

## Examples in other libraries

Looks like there is a little bug in types in ContextMenu:
export interface ContextMenuRootProps extends Omit

It doesn't omit "handle" prop, so it still exist in contextMenu documentation here: https://base-ui.com/react/components/context-menu#root, which feels like the feature is already there.

## Motivation

Just the same as in Menu component: In some comlex DOM layouts it's more easier to add "handle" attribute istead of refactor whole DOM structure to wrap some part into `Trigger` for context menu.
```

{My taken from DOM structure}

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.