Summary
Add a keepMounted prop to Tabs.Root for consistency with Accordion.Root.
Tabs.Panel already supports keepMounted, but there is no way to set it once for all panels from Tabs.Root.
Motivation
This mainly improves API consistency between Accordion and Tabs.
Today, users can write <Accordion.Root keepMounted>, but need to repeat keepMounted on every Tabs.Panel. A root-level prop would make Tabs match Accordion and provide a convenient default for preserving panel state, avoiding remounts, and supporting measured or animated panel content.
Summary
Add a
keepMountedprop toTabs.Rootfor consistency withAccordion.Root.Tabs.Panelalready supportskeepMounted, but there is no way to set it once for all panels fromTabs.Root.Motivation
This mainly improves API consistency between Accordion and Tabs.
Today, users can write
<Accordion.Root keepMounted>, but need to repeatkeepMountedon everyTabs.Panel. A root-level prop would make Tabs match Accordion and provide a convenient default for preserving panel state, avoiding remounts, and supporting measured or animated panel content.