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

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

    Directly you can use CircularProgress with css properties, zIndex and opacity, Try this:

    
    
    mainLoader: { 
        position: 'absolute',
        paddingTop: '15%',      
        width: '100%',
        height: '100%',
        zIndex: 1000,
        backgroundColor: '#000000',
        opacity: 0.5,
        textAlign: 'center',
    }
    

    It will cover the entire screen with .5 opacity and specified background.

提交回复
热议问题