how to use styles with React components? I tried i...
# react
s
how to use styles with React components? I tried importing
styled
function from material UI but its not working. Can someone provide an example on how to do it, with material UI if possible?
n
with https://github.com/cfnz/muirwik it looks like so
Copy code
mPaper {
    css {
        marginTop = 3.spacingUnits
    }
}
all the components are "styled" components already
Please note that the VERSION of the wrappers is important. The current version of Muirwik (0.5.1) is compatible with pre.104-kotlin. If a different version is used it might cause errors like TypeError: $receiver.child_2usv9w$ is not a function.