react-re-super-tabs
React reusable tab component
Installing
yarn:
yarn add react-re-super-tabs
npm:
npm install react-re-super-tabs --save
Usage
Component API
Tabs
Main container for TabList
components. Use exactly two TabList
components for Tab
components with labels, and TabPanel
components with views
children: Array<TabList> | TabList
activeTab: string
TabList
Container for Tab
, TabPanel
components
children: Array<Tab> | Tab | Array<TabPanel> | TabPanel
className: string
Tab
Clickable label component that change the content view - TabPanel
.
Each Tab
component should have an identifier corresponding to the identifier of the TabPanel
component
component: function
label: string | number
id: string
with CustomTab
remember that you have an access to isActive prop
TabPanel
View component.
Each TabPanel
component should have an identifier corresponding to the identifier of the Tab
component