[context menu] Support detached trigger
Open
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
Assessment
This issue has not been assessed yet.