How to create material-ui dialog box with transparent background color and change its height?

前端 未结 6 1432
北恋
北恋 2021-02-14 11:04

I\'m trying to create a loading status indicator using material ui. But I want the background color of dialogue box as none and also want to adjust the height. But

6条回答
  •  天命终不由人
    2021-02-14 11:28

    For the latest version ("@material-ui/core": "^1.2.3"), here is how it's done:

    
      {/* ... your content ... */}
    
    

    Take note of the new PaperProps prop. It's not in the documentation but if you check out the source, they are using PaperProps as one of the props you can pass in - since this isn't in the docs, this might change with future versions though, so be careful here.

提交回复
热议问题