Setting custom attributes using CMS

Is there a way to use a CMS collection field to set the custom attributes for an Element?

No, you have to use the custom code component.

https://wishlist.webflow.com/ideas/WEBFLOW-I-93