-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
component: HiddenThe React component.The React component.deprecationNew deprecation message.New deprecation message.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.v5.x migration
Milestone
Description
Reintroduce 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
component: HiddenThe React component.The React component.deprecationNew deprecation message.New deprecation message.type: new featureExpand the scope of the product to solve a new problem.Expand the scope of the product to solve a new problem.v5.x migration