Framework/React

[Material UI] Dialog background color ๋ฐ”๊พธ๋Š” ๋ฐฉ๋ฒ•

yuri lee 2023. 7. 10. 22:30
๋ฐ˜์‘ํ˜•

Intro

์•ˆ๋…•ํ•˜์„ธ์š”. ์ด๋ฒˆ ์‹œ๊ฐ„์—๋Š” MUI์˜ Dialog ์—์„œ background color ๋ฅผ ๋ฐ”๊พธ๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๊ฒ ์Šต๋‹ˆ๋‹ค. 

 

How to do

<Dialog
  {...otherProps}
  PaperProps={{
    style: {
      backgroundColor: 'red',
    },
  }}
>
  {/* ... your content ... */}
</Dialog>

์œ„์™€ ๊ฐ™์ด PaperPorps ์†์„ฑ์„ ์‚ฌ์šฉํ•˜์—ฌ backgroundColor๋ฅผ ์ง€์ •ํ•ด์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. 

 

 


https://stackoverflow.com/questions/41158325/how-to-create-material-ui-dialog-with-transparent-background-color

๋ฐ˜์‘ํ˜•