-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] Improve Base UI table of contents for APIs #39412
[docs] Improve Base UI table of contents for APIs #39412
Conversation
Netlify deploy previewhttps://deploy-preview-39412--material-ui.netlify.app/ Bundle size report |
Yeah, the horizontal scroll on the useAutocomplete page isn't ideal. I went looking for other cases of it in the Material UI Component API docs and couldn't find any instances of headers that were wide enough to break it the way "unstable_isActiveElementInListbox" does. Maybe we could resolve it with a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind my previous review! The above-linked PR hopefully tackles the horizontal scroll on the TOC — this one's looking good! 😊 But, maybe we should wait for that one to be merged first, though 🤔
@danilo-leal Great job on the horizontal scroll fix! I've resolved conflicts by pulling changes from #38265 and #39417, and I'm confident it's ready for merging. |
Include properties in the table of contents for both the Base UI component APIs and hooks APIs. I find it helpful to have quick navigation to view properties using the right-side table of contents, especially when there are many properties. This feature is already present in Material UI and Joy UI.
Before: https://deploy-preview-39406--material-ui.netlify.app/base-ui/react-autocomplete/hooks-api/#use-autocomplete
After: https://deploy-preview-39412--material-ui.netlify.app/base-ui/react-autocomplete/hooks-api/#use-autocomplete
Example for multiple hooks APIs - https://deploy-preview-39412--material-ui.netlify.app/base-ui/react-menu/hooks-api/#use-menu-import