question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab component suggestion

See original GitHub issue

It seems the current tab component is a little complex, is it possible to do something like this?

<Tabs>
    <Tab active title="tab1">Tab content 1</Tab>
    <Tab title="tab2">Tab content 2</Tab>
<Tabs>

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
burgaloncommented, Aug 12, 2018

UncontrolledTabs would be nice

4reactions
TheSharpieOnecommented, Oct 26, 2017

I do agree that the current way tabs and tab content/panels are done is a little complex, but bootstrap itself has similar markup as reactstrap. I think the complexity comes from the state management. Bootstrap manages the state for you, where reactstrap does not. Many of reactstrap’s core components are like this, but there are some “uncontrolled” components which handle the most common usecase. Perhaps an UncontrolledTabs component can be created. The only difficulty is that tabs and tab content/panes are really two different things; disjoint components. A wrapper would be needed (for react <16) and would force the two components to be siblings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

react-autosuggest-tab - npm
WAI-ARIA compliant React autosuggest component. ... When suggestion is clicked, Autosuggest needs to populate the input.
Read more >
Creating an accessible tab component with React - Medium
We now have fully accessible tabs. I hope you learned something! And if you have any suggestions on how my component could be...
Read more >
Creating a tabs component with React - Ultimate Courses
Feel free to rip this component apart, suggest best practices and improvements! Table of contents. Component design; Tab Component ...
Read more >
Tabs - Reach UI
Accessible tabs component for React. ... bit more future proof, we suggest using a controlled Tabs component so that your app knows the...
Read more >
Example of Tabs with Automatic Activation | APG | WAI - W3C
Help improve this page. Please share your ideas, suggestions, or comments via e-mail to the publicly-archived list public-aria-practices@w3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found