React Tabz

Demo
install
npm i react-tabz
;; const headings = "First Tab Heading" "Second Tab Heading"; <Tab headings=headings className="yourClassForTabComponent" tabItemClassName="someClassForContentPanel" tabSeparatorClassName="YourClassNameForTabSeparator"> <div /*tabItemClassName class will be here */ >Tab panel content 1</div> <div>Tab panel content 2</div></Tab>
You can disable separator, in case that you want create it by pure CSS
<Tab headings=headings useSeparator=false> <div>Tab panel content 1</div> <div>Tab panel content 2</div></Tab>
Tab props
TabpropTypes = headings: PropTypes children: PropTypes className: PropTypesstring tabItemClassName: PropTypesstring tabSeparatorClassName: PropTypesstring onTabChange: PropTypesfunc ;
TabItem props
TabItempropTypes = text: PropTypesstring checked: PropTypesbool onClick: PropTypesfunc className: PropTypesstring ;
TabSeparator props
TabSeparatorpropTypes = className: PropTypesstring; TabdefaultProps = useSeparator: true;