Simple React Tabs using the new react ContextAPI to manage changes active tabs or not. And there is no need to add tabs container you just add a tab component to handle everythings.
This project done using ReactJS and glamorous styling to add a simple tabs component to your project.
<Tabs
activeTab={{
id: "tab1"
}}
>
<React.Fragment>
<Tabs.Tab id="tab1" title="Tab 1">
<glamorous.Div padding={20}>This is tab 1</glamorous.Div>
</Tabs.Tab>
<Tabs.Tab id="tab2" title="Tab 2">
<glamorous.Div padding={20}>This is tab 2</glamorous.Div>
</Tabs.Tab>
</React.Fragment>
</Tabs>
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Yazan Aabed
- See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- This component to learn more about react
- I will add a unit tests for it ASAP