N
Nuxt8mo ago
Oğuzhan

Nuxt UI Modal

Hello guys, I have two components named test1 and test2 in my Nuxt 3 project, and I'm using Nuxt UI for them. Both of these components work with the modal structure in Nuxt UI. What I want to do is, I have a button inside the test1 modal, and when I click on it, I want the test1 modal to close and the test2 modal to open. How can I achieve this?
1 Reply
Dmytro Tihunov
Dmytro Tihunov8mo ago
you need to use props between them, or using global state using const status = useState("modal", () => false)
Want results from more Discord servers?
Add your server