Skip to content
Prev Previous commit
Next Next commit
docs(tabs): add warning for required tabbar
  • Loading branch information
thetaPC committed Sep 12, 2024
commit c2034879179b7f756fe34841f7a70a9dd4a3f49f
4 changes: 4 additions & 0 deletions docs/api/tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ The `ion-tabs` component does not have any styling and works as a router outlet

Both `ion-tabs` and `ion-tab-bar` can be used as standalone elements. They don’t depend on each other to work, but they are usually used together in order to implement a tab-based navigation that behaves like a native app.

:::warning
Using `IonTabs` within React requires the `IonTabBar` component as a direct child of `IonTabs`.
:::
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a separate PR that removes the need to include IonTabBar within IonTabs. If that PR is approved first then I'll remove this warning before this docs PR is merged. Else I'll remove it in a separate PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be good to remove this 👍


The `ion-tab-bar` needs a slot defined in order to be projected to the right place in an `ion-tabs` component.

## Basic Usage
Expand Down