Is there a String Union Type of all HTML Element names?
Pretty much what the title says. I want to be able to pass in any name of an html element, to then apply a style to, and return to the user.
5 Replies
so the type would be a string union of something like this:
I'm wanting to implement something like this:

Answer:
HTMLElementTagNameMap
Lmao Astro has an htmlTag type