Automatically swap component variant when resizing containing frame

Hello. Is it possible to swap automatically swap components variants based on the container’s width? Basically wanting to change components at each breakpoint, like in this plugin?