Is there a way to use the regular compose API in a...
# compose-web
p
Is there a way to use the regular compose API in a web app?
h
Sure! 😄 What do you want?
p
Waiiit that's already possible?
In the docs and in the class path I only found the div stuff
h
I think, the first alpha was released in Mai/June https://twitter.com/shikasd_/status/1379757917893722114
r
That's for the HTML based rendering, @Paul Woitaschek are you asking about using the material components?
☝️ 1
Those material components are currently WIP, afaik, for web (see the thread above yours), but there's an example here. I have no idea if you can use it yourself yet
n
@Big Chungus is working on https://github.com/mpetuska/kmdc, which wraps another library to provide material components for Jetpack Compose. It won't be the same API as on Android, but it's the same design system.
p
Ah thanks that's super helpful. I'm talking about the foundation apis like Column
k
So you might be interested in this library: https://github.com/varabyte/kobweb
d
@Paul Woitaschek The post only one-up from yours discusses this 🙃. The answer is Compose for Web (Canvas) which is a forthcoming addition to JetBrains' Compose/Multiplatform tooling.
Note this is not yet supported (see how the example code references a dev build of Compose); it's currently under development. But it's enough to play & get started with.
p
Yep already toyed with it and it works for basic things like text but besides that fails very quickly with weird errors. But it’s on my radar now. We’re currently having a mac desktop app but that’s annoying to deploy with all the signing and updating flow so hosting our app in a website would work so much better
👍 1