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: 96d4e43

@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 🔺+52B(+0.01%) 🔺+1B(0.00%)

Details of bundle changes

Performance

Total duration: 1,263.23 ms -118.65 ms(-8.6%) | Renders: 50 (+0) | Paint: 1,903.45 ms -217.56 ms(-10.3%)

Test Duration Renders
Checkbox mount (500 instances) 81.64 ms 🔺+17.80 ms(+27.9%) 1 (+0)
Select mount (200 instances) 134.59 ms ▼-61.09 ms(-31.2%) 3 (+0)
Menu mount (300 instances) 137.49 ms ▼-50.02 ms(-26.7%) 2 (+0)
Menu open (500 items) 67.64 ms ▼-29.99 ms(-30.7%) 12 (+0)
Mixed surface mount (app-like density) 78.58 ms ▼-26.21 ms(-25.0%) 5 (+0)

…and 1 more (+6 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 96d4e43
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/6a13fc33210743000877532e
😎 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
@sarthakmalik0810 sarthakmalik0810 force-pushed the tabs-root-add-keep-mounted branch from 94ea78e to 96d4e43 Compare May 25, 2026 07:37
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