[RFC] Different way for showing the API references #36204
Replies: 11 comments
-
I personally liked style 3, I tried the demos and searching for a specific prop was the fastest in 3rd option. |
Beta Was this translation helpful? Give feedback.
-
I prefer option 2. Compared with 3, it won't increase page's height too much, so we can scroll to the part we want quickly. |
Beta Was this translation helpful? Give feedback.
-
2° style is the best for me |
Beta Was this translation helpful? Give feedback.
-
2 or 3. They are both an improvment.
I don't feel strongly about 2 or 3 as I think anyone can adapt to either quite easily. |
Beta Was this translation helpful? Give feedback.
-
2 or 3. I prefer 2 since everything looks to be in one place. |
Beta Was this translation helpful? Give feedback.
-
I think 2 is the clear winner personally. The Table of Contents actually looks really clean and easy to use here, so I don't see any cons. With 3 we still have the fundamental problem of users getting frustrated when they land on the wrong page. All that said—if there's one thing we've learned from the current implementation of the Component and API pages, it's that we need to make the tabs as obvious and eye-catching as possible. If this Demos callout isn't enough for some users to find what they need (and it remains a common complaint in our doc feedback even after bumping this to the top of the page), then I fear that users aren't going to see the tabs unless they really stand out on the page. |
Beta Was this translation helpful? Give feedback.
-
I like option 2 but think the nav could be placed before the main content, at first it wasn't obvious that I could navigate using the side menu to different parts of the doc for every tab. |
Beta Was this translation helpful? Give feedback.
-
Option 2 looks like the winner to me! |
Beta Was this translation helpful? Give feedback.
-
Option 2 is great, it has all the relevant information you need without redirection plus you can use CTRL + F. However I find the "Demo, Component, Hook" tab is easy to miss (at least the first time you see it) |
Beta Was this translation helpful? Give feedback.
-
Third is better for the developers.
In this way the developer does not take a look on components on which he is not interested and can focus on relevant information. But I have a question, if there is a page where the API section is single, in the third solution I see a single link or there is the possibility to see the full page without the link? |
Beta Was this translation helpful? Give feedback.
-
Personally I think there is a strong case for combining options 2 and 3. In my eyes there is certainly a benefit to having all relevant information available in the same document but also to being able to quickly navigate to the dedicated docs page with just the info you need if you already what that is. If option 2 is implemented, option 3 seems like such low hanging fruit that it would almost be a crime to omit it. |
Beta Was this translation helpful? Give feedback.
-
With the growing number of components, demos, and hooks we are introducing, it starts to become harder to get the API information for the different components and hooks from the demos pages. We are investigating different ways how we can improve this #35938. These are the options we currently have:
Option 1: Keep things as they are
Each page will have the API section as the last, where developers can find links to all components & hooks documented on the page. For e.g.: https://mui.com/base/react-tabs/#api
Pros:
Cons:
Option 2: Add tabs for each section and place content in the tab panels.
Each tab in its content will list sections for all components and hooks API information (the content is the same as in the current API pages. This is a POC of how this can look like: https://deploy-preview-35938--material-ui.netlify.app/base/react-tabs/
Pros:
CMD/CTRL + F
to search for a specific propCons:
Option 3: Add tabs for each section containing links to the API pages
Add tabs for the demos, components’ API, and hooks API at the top of the page, where each tab will host the links to the different API pages. This is a POC of how this can look like: https://deploy-preview-36178--material-ui.netlify.app/base/react-tabs/
Pros:
Cons:
Which option would you prefer and why? Use the up button to leave your vote:
Beta Was this translation helpful? Give feedback.
All reactions