onSelect
Accepts a callback that is called whenever a <Tab>
is selected.
Arguments
cb
(Function): A function that is passed the selected tab index and the last tab index as arguments.
Example
<Tabs
onSelect={(firstTab, lastTab) => console.log(`${firstTab}, ${lastTab}`)}
/>