mui / mui/material-ui

[Tabs] Reduce complexity for using a basic tabs

Open
#23,628 7 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs scope: tabs
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Hi All,

I was looking at the Tabs demo here - in an attempt to rapidly create a simple ReactJS web page with a tabbed navigation structure.
https://codesandbox.io/s/cbn97?file=/demo.js
which is hyperlinked from
https://material-ui.com/components/tabs/

I found it incredibly hard to comprehend what is the bare minimum code that I need to write to get a simple Tab system up and running.

Comparing with Bootstrap

Look at the Bootstrap tabs here as an comparative example:
https://react-bootstrap.github.io/components/tabs/
Just 11 lines of Bootstrap Tab as opposed to 50 lines of Material UI tab

You can have complex demos. But, the starter demo should be as simple as possible.

Thank you,
Sau

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Tabs documentation page and its linked CodeSandbox demo, then compare the starter example with the Bootstrap tabs example linked in the issue. Done means the introductory Material UI example uses substantially less code while still demonstrating a working basic tabbed navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.