mui / mui/base-ui

[popover] Why can't I have Popover.Content outside of a Portal?

Open
#4,750 4 comments 0 reactions 0 assignees View on GitHub
component: popover support: question
Dominant language
TypeScript
Stars
10.9k
Forks
543
Avg merge
2d 1h
Merged PRs (30d)
114

Description

Hey, I couldn't find anything specific in the documentation about this, but is it intentional that popovers need to be wrapped in a portal element? (unlike other ui libraries, like ariakit that allow this)

[StackBlitz](https://stackblitz.com/edit/rrpxtdwy?file=src%2FApp.tsx) reproduction/evidence

Contributor guide

Open the contributing guide

Research direction

Start with the linked StackBlitz reproduction, especially src/App.tsx, and compare the Popover.Content behavior with and without a Portal. Read the popover and portal entry points to determine whether rendering Content outside a Portal is intended to be supported; done means the expected behavior is established and covered by documentation or a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.