https://kotlinlang.org logo
#webassembly
Title
# webassembly
a

Abhimanyu

03/29/2024, 5:04 PM
Hi 👋, How to create an anchor tag in Compose Web?
c

CLOVIS

03/29/2024, 6:03 PM
Have you tried this?
Copy code
A {
    href = "#the-target-id-here"
}
a

Abhimanyu

03/29/2024, 6:09 PM
Hi @CLOVIS, I am trying out Compose Web for the first time. Is the
A
a Composable? Where does this code go?
a

Abhimanyu

04/01/2024, 3:23 AM
Thanks for sharing. I got to know from this thread (https://kotlinlang.slack.com/archives/C01F2HV7868/p1711739791403199?thread_ts=1711736057.801339&cid=C01F2HV7868) that there is Compose for Web and Compose HTML. I decided to move from Compose for Web to Compose HTML and this gives access to the required
A
composable.
c

CLOVIS

04/01/2024, 7:50 PM
Oh, sorry, I thought this was #compose-web, I didn't realize it was #webassembly. Yes, HTML elements are only available in Compose HTML.
👍 1
2 Views