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
[Joy] Add Breadcrumbs
component
#32697
Conversation
@mui/joy: parsed: +0.77% , gzip: +0.68% |
Props
|
I would go further and say that it's incorrect. If the point of so it seems we should update the Material UI implementation.
That's fine for a static example, but for most use cases the links are going to be programmatically generated. If it gets too complex, it might still be better as a feature of the component rather than an example.
More correctly, an ellipsis is a unicode symbol "⋯" rather than three separate dots. |
For the docs, giving feedback here might be easier. Introduction
ComponentI think this section should demonstrate props and how to use them with minimal code sample (it should stick to 1 prop if possible)
In each demo that you use // The `preventDefault` is for demonstration purposes, generally, you don't need it in your application
<Link onClick={event => event.preventDefault()}> Common examplesThe idea of this section is to showcase advanced/real-world examples that use the component to build more complex interfaces. Also, stress test the component to make sure that the customization experience is great. The demo you added is useful but I think it should be in this category. Or you can update the demo to make it look like Google Also, you can replace |
Thanks for the detailed feedback, Jun. I addressed them. Let me know. |
Last review
1. The code block in the introduction This once should be like this: <Breadcrumbs>
<Link />
...
</Breadcrumbs> 2. CSS variables Let's shorten the 3. Collapsible example Too many colors in the demo. I think it is better to use just 1 color (may by 4. Menu example It is nice to add the link to the menu component page. |
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.
👍 Thanks Benny!
A reminder (again) to please have a native English speaker review new or significantly changed docs before merging. We're accumulating significant non-technical debt. cc @samuelsycamore - you might like to submit a PR to clean the docs up for this component, and Joy UI as a whole. |
Good idea. I'll create a new issue to track revisions and start submitting PRs for the pages we have so far. Edit: Here's that issue—#33998 |
Done:
Demos: https://deploy-preview-32697--material-ui.netlify.app/joy-ui/react-breadcrumbs/