Muqarnas is both a structural element that fills the zones of transition between walls and domes and a decorative element that copies the same structural composition.
https://www.conted.ox.ac.uk/courses/samples/islamic-art-and-architecture-online/index.html