Tabs

To create a tabbed view, wrap each view element in a <TabView> component

Props

  • name
  • labels - array of strings for the tab labels
<TabView name='Billing' labels={['Plan', 'Card Details']}>
  <Card/>
  <Card/>
</TabView>

You must give your <TabView> a name in order for the state to be saved across page changes.