How to create a click-triggered popup in a theme app extension?

I ended up being able to do this by using a js function that toggled a hidden CSS class. Not going to call it the most elegant solution, but it works