Skip to content

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Oct 2, 2025

Built off #2847

This makes the portal element (with the internal id) a regular element rendered inside React. So you can pass props to it, access it with a ref, etc. The container prop is still used as a location to inject it.

Closes #2887
Fixes #2780 (https://codesandbox.io/p/sandbox/kind-moon-fstqzf)

@atomiks atomiks added the scope: portal Changes related to the portal. label Oct 2, 2025
Copy link

pkg-pr-new bot commented Oct 2, 2025

vite-css-base-ui-example

pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/react@2889
pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/utils@2889

commit: 1183e7a

@mui-bot
Copy link

mui-bot commented Oct 2, 2025

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react ▼-4B(0.00%) ▼-15B(-0.01%)

Details of bundle changes

Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit c5294d3
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/68df328c4bfef30009748a11
😎 Deploy Preview https://deploy-preview-2889--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@atomiks atomiks force-pushed the feat/portal-elements branch from 39888ea to f4cc9da Compare October 3, 2025 02:21

This comment was marked as duplicate.

This comment was marked as duplicate.

This comment was marked as duplicate.

@atomiks atomiks force-pushed the feat/portal-elements branch 3 times, most recently from a6e2dde to 66fcf91 Compare October 3, 2025 02:53
@atomiks atomiks added the type: bug It doesn't behave as expected. label Oct 3, 2025
@atomiks atomiks marked this pull request as ready for review October 3, 2025 02:57
@atomiks atomiks force-pushed the feat/portal-elements branch from 66fcf91 to 1cc28d8 Compare October 3, 2025 03:02
@atomiks atomiks force-pushed the feat/portal-elements branch from 50a0c63 to 5d77d0f Compare October 3, 2025 03:11
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 6, 2025
Signed-off-by: atomiks <cc.glows@gmail.com>
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: portal Changes related to the portal. type: bug It doesn't behave as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Access the Portal part node [toast] Portal doesn't respect provided container
2 participants