Accessible tab component for React
Properly and efficiently handles clicks, keystrokes, and tabindexes. Also allows for callbacks to be passed to perform some action when a tab is clicked (optional).
Usage
; ... const tabContent = label: 'Some Component' content: <SomeComponent /> callback: thissomeCallback label: 'Another Component' content: <AnotherComponent someProp=thissomeFunc /> {} label: 'Third Tab' content: <ThirdComponent /> ; ... { return <Tabs data=tabContent /> }
Styling
No styles are included, but use the following for reference:
.dz0-wrapper-tabs