Open
Description
Feature request
Summary
I would like to have more control over how tab panels are rendered, and one way to achieve that would be a Tabs.Panels
component that, like other components, would accept a render
function that would get passed some state
... however, unlike Tabs.Root
and Tabs.List
, that state would include the current value
so that I can use something like Motion's AnimatePresence
component to transition from the previous tab panel to the current one.
Examples in other libraries
Headless UI has a TabPanels
component that has a selectedIndex
render prop.
Motivation
Kind of answered in "Summary". Thank you!