Is there any possibility to add Compose Web for th...
# compose-web
a
Is there any possibility to add Compose Web for this multiplatform project template? https://github.com/JetBrains/compose-jb/tree/master/templates/multiplatform-template ... It's very difficult to setup Compose multiplatform Project that include Android, Desktop and Web
b
Don't do that in a single module as android/desktop shares a lot more artefacts than web. Here's how to set it up for maximum reuse:
Copy code
/shared-common # [jvm,js,android] has only compose foundation
/shared-skia # [jvm,android] depends on `shared-common`
/android # [android] depends on `shared-skia`
/desktop # [desktop] depends on `shared-skia`
/web # [js] depends on `shared-common`
๐Ÿ‘๐Ÿป 1
๐Ÿ‘๐Ÿผ 1
๐Ÿ‘ 2
๐Ÿ‘€ 2
h
With the DOM api and plain compose web, this does not work out of the box... If you use material compose web by Martynas: https://github.com/mpetuska/kmdc or bootstrap compose https://github.com/hfhbd/bootstrap-compose you could use some actual/expect components eg Row/Column/Card etc
b
Note that kmdc is still very much experimental. Use at your own risk.
h
Same as bootstrap ๐Ÿ˜„ What do you expect with breaking changes in Compose Web itself?
d
@Big Chungus is there an accessible template project on e.g. github demonstrating this layout you mentioned above that you can point us to? thanx
b
I'm sure there is, but I don't have any as I'm generally avoiding mobile targets in my mpp journey
h