This was possible pre-Aug 2022 with Itsy, a Pack that demonstrated how any web component could exist inside Coda and wherever a pack formula could be used.
Coda sealed off this capability for security reasons. I argued that they should have leaned into it and devised a sanitized sandbox to support this capability. I predict – eventually – the spirit of Itsy will rise from the dead not because I’m biased, but because Coda must embrace open web standards to help Makers address the millions of corner cases that exist.