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

前端 未结 6 1442
北恋
北恋 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:15

    There is the component CircularProgress which you can use directly (instead of building a loding indicator by using Dialog: http://www.material-ui.com/#/components/circular-progress

    You can place the loading indicator in a div which is placed in the middle of the page:

    JSX:

    CSS:

    .my-spinner {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-
    }
    

提交回复
热议问题