Skip to main content
I particularly wanted these Cosmos Components to be usable in vanilla HTML, without any bundler or frontend framework whatsoever. I find this is great for prototyping and simple projects.
Note that not all browsers support separate import maps, so for the time being you will need to always inline it in your HTML.
setup.js
index.js
My personal favorite for writing HTML is Pug, although it requires some additional build steps to get the final HTML. The above snippet can be written in Pug as: