Big Chungus
05/23/2021, 9:07 PMimport "some/side/effect.js
in javascript?turansky
05/23/2021, 9:55 PMBig Chungus
05/24/2021, 7:25 AMturansky
05/24/2021, 12:53 PMBig Chungus
05/24/2021, 12:58 PMrequire("some/style.css")
on top-level kotlin code. And yes, ideally everything should be drivven by code.turansky
05/24/2021, 1:04 PMturansky
05/24/2021, 1:09 PMstyle
in shadow root.
If you create root component in library you can use same practice.turansky
05/24/2021, 1:10 PMBig Chungus
05/24/2021, 1:12 PMturansky
05/24/2021, 1:38 PMStyle("button.css") {
Button {}
}
require
will be called inside Style
In common case looks container required (web component), because in case of local styles shadow root required:
@Component
@Composable
fun MyButton(
val name: String,
) {
Style("button.css")
Button {}
}