Reintroduce Hidden component
See original GitHub issueReintroduce the hidden component.
https://material-ui.com/components/hidden/
The removal of the hidden compatibility breaks backwards compatibility. Currently the sx property makes it difficult to replicate the functionally of the hidden component. I think it has been prematurely removed.
For example:
<Hidden smDown><Button display='flex' /><Hidden/>
becomes,
<Button sx={{ display: { xs: "none", sm: "none", md: "flex", lg: "flex", xl: "flex" }}} />
Having to list all the breakpoints in the example above isn’t ideal. Hidden supported this use case well.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Reintroduce Hidden component · Issue #26408 · mui/material-ui
My main concern is that the migration path is only fully available since v5, people on v4 don't have a smooth transition. I...
Read more >Reintroduce Directive - Delphi in a Nutshell [Book] - O'Reilly
Description. A derived class uses the reintroduce directive to hide the name of a virtual or dynamic method that was declared in a...
Read more >Reintroducing functions in Delphi - Stack Overflow
The RTL uses reintroduce to hide inherited constructors. For example, TComponent has a constructor which takes one argument. But ...
Read more >Hidden Components - the Draftbit Docs!
Hidden Components enable the ability to hide a component from the Components tree. To hide a component, hover over the component in the...
Read more >Understanding common frustrations with React Hooks
We'll discuss the problem React Hooks intends to solve, what was wrong with the class component, as well as common error messages you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I have stopped listening to issues for the last 3 weeks and will likely continue going forward. I was planning to open the same issue when I realized it was already created. It seems that the removal of the
<Hidden>
component was premature. We got a lot more people complaining about this one than most of the other BCs.My main concern is that the migration path is only fully available since v5, people on v4 don’t have a smooth transition. I propose we introduce the component back but deprecated. cc @mui-org/core.
@mnajdova Thanks for the clarification. That makes sense, closing. I still think that Hidden should be deprecated more slowly.