You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue when trying to create a reusable component that contains Tabs.Tab as a wrapper and displays all the children. The Tabs.Container component is expecting its children to be directly wrapped in Tabs.Tab components, but this requirement seems to cause an error when using a reusable component.
exportconstReviewsTab=({ children })=>{return(<Tabs.Tabname="Reviews"label="Reviews">{children}</Tabs.Tab>);};constFoo=()=>{<Tabs.Container><ReviewsTab><Text>Foo</Text></ReviewsTab></Tabs.Container>};
Feature request
Create a reusable component that contains Tabs.Tab as a wrapper and renders all the children.
Use this reusable component in a parent component where Tabs.Container is used.
Current behavior
It throws an error: "Container children must be wrapped in a <Tabs.Tab ... /> component"
The text was updated successfully, but these errors were encountered:
I'm encountering an issue when trying to create a reusable component that contains Tabs.Tab as a wrapper and displays all the children. The Tabs.Container component is expecting its children to be directly wrapped in Tabs.Tab components, but this requirement seems to cause an error when using a reusable component.
Feature request
Current behavior
It throws an error: "Container children must be wrapped in a <Tabs.Tab ... /> component"
The text was updated successfully, but these errors were encountered: