Skip to content

[tabs] Add keepMounted prop to TabsRoot#4830

Open
sarthakmalik0810 wants to merge 1 commit into
mui:masterfrom
sarthakmalik0810:tabs-root-add-keep-mounted
Open

[tabs] Add keepMounted prop to TabsRoot#4830
sarthakmalik0810 wants to merge 1 commit into
mui:masterfrom
sarthakmalik0810:tabs-root-add-keep-mounted

Conversation

@sarthakmalik0810
Copy link
Copy Markdown
Contributor

Closes #4822

Add keepMounted prop to <Tabs.Root />. Can be overridden per panel with keepMounted on <Tabs.Panel />

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 17, 2026

commit: dd6bdb7

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented May 17, 2026

Bundle size

Bundle Parsed size Gzip size
@base-ui/react 🔺+53B(+0.01%) 🔺+4B(0.00%)

Details of bundle changes

Performance

Total duration: 1,286.23 ms +66.20 ms(+5.4%) | Renders: 50 (+0) | Paint: 1,958.95 ms +73.41 ms(+3.9%)

Test Duration Renders
Tabs mount (200 instances) 270.63 ms 🔺+45.53 ms(+20.2%) 4 (+0)
Checkbox mount (500 instances) 81.28 ms 🔺+14.62 ms(+21.9%) 1 (+0)
Popover mount (300 instances) 77.92 ms 🔺+14.06 ms(+22.0%) 1 (+0)
Dialog mount (300 instances) 62.34 ms 🔺+10.64 ms(+20.6%) 1 (+0)

8 tests within noise — details


Check out the code infra dashboard for more information about this PR.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 17, 2026

Deploy Preview for base-ui ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit dd6bdb7
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a0af8463ee09400088ceba6
😎 Deploy Preview https://deploy-preview-4830--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@sarthakmalik0810 sarthakmalik0810 force-pushed the tabs-root-add-keep-mounted branch 2 times, most recently from 6f29c2c to 22d4edb Compare May 17, 2026 18:50
@oliviertassinari oliviertassinari added the component: tabs Changes related to the tabs component. label May 17, 2026
@sarthakmalik0810 sarthakmalik0810 force-pushed the tabs-root-add-keep-mounted branch from 22d4edb to dd6bdb7 Compare May 18, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: tabs Changes related to the tabs component.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tabs] Add keepMounted prop to Tabs.Root for consistency with Accordion.Root

2 participants