Tab component suggestion
See original GitHub issueIt 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:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
UncontrolledTabs would be nice
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.