Hi :wave:, How to create an anchor tag in Compose ...
# webassembly
a
Hi 👋, How to create an anchor tag in Compose Web?
c
Have you tried this?
Copy code
A {
    href = "#the-target-id-here"
}
a
Hi @CLOVIS, I am trying out Compose Web for the first time. Is the
A
a Composable? Where does this code go?
a
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
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