any idea how to implement `background: inear-gradi...
# javascript
s
any idea how to implement
background: inear-gradient(325deg,rgba(39,107,130,1) 0,rgba(49,84,129,1) 100%)
in kotlin.css ?
b
You can add it as raw attr.
setAttr("background", "inear-gradient(325deg,rgba(39,107,130,1) 0,rgba(49,84,129,1) 100%)")
or something along these lines, use idea autocompletion to find a right fun
s
How do you do this in styled components.
got it. its simple as background = linear-gradient(325deg,rgba(39,107,130,1) 0,rgba(49,84,129,1) 100%)
m
Yup, just set it as a string.
s
thank you