Simple React Tabs using the new react ContextAPI
Switch branches/tags
Clone or download
Latest commit d97adae Oct 29, 2018

README.md

React Tabs

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.

Introduction

This project done using ReactJS and glamorous styling to add a simple tabs component to your project.

Examples

  <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>

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Yazan Aabed
  • See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • This component to learn more about react
  • I will add a unit tests for it ASAP