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][joy-ui] Add documentation for Box component in the sidebar #35699
Comments
I do think we need to provide info on the Box to Joy UI users, but it feels redundant to have three different pages (MUI System, Material UI, and then Joy UI) for what is essentially the same component in all cases. Instead of repeating the content, maybe we should follow the pattern we use for Base UI components that are exported in Material UI? https://mui.com/material-ui/react-click-away-listener/ So Joy UI and Material UI would both have skeletal Box docs with an info callout directing readers to the MUI System doc, which would be the source of truth for the component. Does that make sense? cc @danilo-leal |
I dig that! That occurred to me after opening the PR linked above (#39159), and how having to maintain 3 different pages with essentially the same content wouldn't be efficient... plus, it feels like the source documentation for the Box should probably live in the MUI System docs instead of anywhere else. Wasn't already that we were using this pattern already for the Click Away Listener! Happy to use the PR above to kick off a Box page revision and then just apply the callout in both Material UI and Joy UI! |
@samuelsycamore There are more differences in the case of the I wouldn't be against documenting this difference, but I don't know if it's important, maybe to wait user to complain. If we look at the long-term direction. For v6 I suspect that removing this difference could be a net positive. It would mean having MUI System, Joy UI, and Material UI sharing the same default theme, same as either null or with basis values. In practice, developers would need to add a ThemeProvider (otherwise it would be broken), not too different from how it's like to use Tailwind CSS. I imagine that for the zero runtime CSS-in-JS engine, some setup would be required anyway. This would solve:
Idea added to #30660. |
Duplicates
Related page
https://mui.com/joy-ui/react-card/
Kind of issue
Missing information
Issue description
There are examples on the doc where use of
Box
component is prominent, like, Card.I was looking for
Box
component's documentation and it appears that it isn't present in Joy UI's doc, even when the component exists.import Box from '@mui/joy/Box';
Context 🔦
No response
The text was updated successfully, but these errors were encountered: