HI I'm using MUI in trying to change the backgroun...
# javascript
c
HI I'm using MUI in trying to change the background-color for the Paper component in Dialog through PaperProps but my app crahes when I do
Copy code
Dialog { 
 PaperComponent = FC { //this : ChildrenBuilder it: PaperProps
    <http://it.sx|it.sx> {
        fontSize = FontSize.small
        backgroundColor = Color("transparent")
    }

 }
}
I have also tried this but doesn't do anything
Copy code
Dialog { 
 PaperComponent = FC { //this : ChildrenBuilder it: PaperProps
        it.asDynamic()["background-color"] = "transparent"
        it.asDynamic()["font-size"] = "small"
  }
}
Does anyone
t
Copy code
Dialog { 
   PaperComponent = MyPaper
}

val MyPaper = FC<PaperProps> { props ->
    Paper {
        +props

        sx {
            fontSize = FontSize.small
            backgroundColor = NamedColor.transparent
        }
    }
 }
c
Solved it, thanks Victor !