thaekeh
thaekeh
NNuxt
Created by thaekeh on 4/16/2025 in #❓・help
Clean Modal emits
Hi all, I'm making the transition to Nuxt UI v3 (and am really enjoying it so far). There is one issue that I'm curious to see if someone solved in a nicer way. Sometimes a Modal can take multiple actions, for which I emit "close" events with the relevant data and a type field like type: "login". This feels a bit messy, so I'm curious if anyone has other ideas. Also, the parent component doesn't see the types of the emit, so it's a bit annoying to work with IMO. Does anyone already have a solution for this? Thanks in advance!
5 replies