https://kotlinlang.org logo
#compose-web
Title
# compose-web
a

aris

03/27/2024, 8:41 AM
Hello! There is any way to open another website? I not found intents on Wasm so I really dont know how open a external links
m

mohamed rejeb

03/27/2024, 10:44 AM
You can use
LocalUriHandler
inside compose:
Copy code
val uriHandler = LocalUriHandler.current

LaunchedEffect(Unit) {
    uriHandler.openUri("<https://www.google.com>")
}
👍 1
a

aris

03/27/2024, 10:46 AM
Thx!
6 Views