@studio-shapeshift
Custom elements are possibly even the better way, but surely also the more difficult one.
And here an example of an working HTML-Component…
https://www.wix.com/velo/forum/coding-with-velo/wix-custom-element?postId=60a2d0db629970001522f33d&origin=notification