Is it possible to create a modal in ssr?
Unanswered
West African Crocodile posted this in #help-forum
West African CrocodileOP
Is it possible to create a modal that the user can enter when they press a button on a page created in ssr?
5 Replies
New Guinea Singing Dog
Wouldn't it need to be a client component so it can manage the state of the button being clicked etc?
@West African Crocodile Is it possible to create a modal that the user can enter when they press a button on a page created in ssr?
Yes its possible, the modal wont be prerendered though
unless ure down to use something like
opacity:0New Guinea Singing Dog
Just another interesting way to maybe do it is using the dialog element in the JSX https://www.w3schools.com/tags/tag_dialog.asp