Change a component variant when you click on a dropdown overlay

I am trying to change a component variant when you click on an option in dropdown overlay.

I have a dropdown with a bunch of options. The dropdown opens as an overlay and what to change a component variant in a frame as per what I select in the dropdown overlay. I am trying to avoid creating multiple slides. I can do it if it’s not an overlay eg like a button and use change to.