WAI-Aria tabs
Accessible tab component for react.
- Keyboard navigation (left right arrow for selecting focus on tab header)
- Aria attributes
Install
npm install --save react-wai-accessible-tabs
Example usage
import Tabs TabPanel Tab from 'react-wai-accessible-tabs'; <Tabs ="my-tabs" ="tab2"> <Tabs.Header ="Sports"> <Tab ="tab1">Football</Tab> <Tab ="tab2">Basketball</Tab> <Tab ="tab3">Baseball</Tab> </Tabs.Header> <TabPanel ="tab1"> Football is great </TabPanel> <TabPanel ="tab2"> Basketball is also great </TabPanel> <TabPanel ="tab3"> Baseball is also great </TabPanel></Tabs>
Styling
Example styles