I’ve recently published a more in-depth article on how to stay focused while studying. I might be helpful to some students. You can check it out here: https://www.failedsuccessfully.com/how-to-stay-focused-while-studying/
The functionality should be handled in the component itself(in this case “CustomButtonWithSlots”). I’m not a fan of binding functions to child components.
When you want to display a confirmation dialog, your button serves a special purpose. So you should handle that directly in that component.
I hope that clarifies things for you 😊