bmhaskar / dynamic-reactstrap-tabs

Example of dynamic reactstrap tabs. Created with CodeSandbox [https://codesandbox.io/s/github/bmhaskar/dynamic-reactstrap-tabs]

Home Page:https://bmhaskar.github.io/dynamic-reactstrap-tabs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dynamic-reactstrap-tabs

This is an use case of displaying reactstrap tabs with capability of adding new tab from existing tab content with a simple function

For example you have a list of items displayed in tab and you click on one item. Now without losing the context of list you want to view details of item. The code illustrates how you could open a tab with item details. This can be repeated without writing any code to close, open or select a tab.

Features

  • Includes reusable MultiTabs component. Provides simpler API to create tab based screens. There are simple functions like -

    Also there are following options

  • You don't need to make any changes to the tab content components. You could get access to the API via consumer.Example

  • Automatically open newly added tab

  • Ability to select which active tab

Upcoming items

  • Lazy loading of tab content
  • Option to eager load tab content

About

Example of dynamic reactstrap tabs. Created with CodeSandbox [https://codesandbox.io/s/github/bmhaskar/dynamic-reactstrap-tabs]

https://bmhaskar.github.io/dynamic-reactstrap-tabs/


Languages

Language:JavaScript 83.7%Language:HTML 15.7%Language:CSS 0.6%