Recent years have seen an explosion of research in flat optical components fashioned with so-called metasurfaces – intricately engineered, planar configurations of subwavelength elements. But most of these flat optical elements have lacked a means of active control, a drawback that’s held back their use in many applications.