Version: 3.0.0-next.37

Tabs

Migrating to v3 will provide a lot more design, size, variation, color and customisation option.

We have sliced Tabs into multiple smaller component which not only provides more control over the the code but also makes it more readable.

Overview#

Migrating Tabs components can broadly described in these points:

  • Separated TabViews and TabBar. Providing more control over the structure and design.
  • Each Tab can be more than string.

Code Comparison#

<Tabs>
<Tab heading='One'>
<Text>One</Text>
</Tab>
<Tab heading='Two'>
<Text>Two</Text>
</Tab>
<Tab heading='Three'>
<Text>Three</Text>
</Tab>
</Tabs>