Material-UI Grid does not hide whe use Display

前端 未结 3 761
醉话见心
醉话见心 2020-12-18 13:20

I want to use MUI Grid https://material-ui.com/api/grid/ and I wanted to hide one item Grid if the screen is small, so I found something called Display ht

3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-18 13:59

    Material UI exposes a component to achieve this. Just wrap component you want to hide for specific screen size:

          
              

    Hide me on XS view port width.

    You can find more examples in the documentation.

提交回复
热议问题