Hello, I wanted to know that how can I add `modals...
# compose-web
r
Hello, I wanted to know that how can I add
modals/dialog forms
compose web I added Bootstrap modal but it's loaded as different screen
h
Did you try https://github.com/hfhbd/bootstrap-compose? The modal should work as expected.
r
I was wrapping it manually in my project
But I see what I was missing
Seems like this library covers the case
I got to know about DomSideEffect which I was missing
h
Yeah, like the "nomal" compose way, you control the modal with a mutableState<Boolean>, see https://github.com/hfhbd/bootstrap-compose/blob/main/showcase/src/jsMain/kotlin/app.softwork.bootstrapcompose.showcase/ModalView.kt
r
helo @hfhbd where does the
Modal(gtmlDivElement)
from in your Component ?
r
So
show
and
hide
functionality are taken care of by this JS adapter file right ?
h
yes
r
understood. I was doing it wrong way I will check your lib in my project 😄