Closed lava83 closed 2 years ago
Hey! If you want to use lowercase component names you’ll have to alias it like you’ve found. Nothing we can really do here, that’s just how things work with Vue. We could change the component name but that would make the experience worse for everyone using PascalCase (like we use in the docs) and it’s not necessary anyways since you can alias it to whatever you want when you import it.
Generally I would just recommend using PascalCase, this is what the Vue style guide recommends as well:
https://vuejs.org/style-guide/rules-strongly-recommended.html#component-name-casing-in-templates
What package within Headless UI are you using?
@headlessui/vue@latest
What version of that package are you using?
v1.6.7
What browser are you using?
Chrome
Reproduction URL
Describe your issue
When I want to use the dialogue component as kebab-case, it already complains with:
Dialog is defined but never used.
although I use the component in the template area... See script above.I think it has something to do with this html tag: https://developer.mozilla.org/en/docs/Web/HTML/Element/dialog
If I use the component in PascalCase notation, it works again.
I have now helped myself by importing
Dialog
as an aliasVDialog
, but it is not pretty.