Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Feature Request ] Would it be possible to support PascalCase for the components? #284

Closed
gunhaxxor opened this issue Jan 24, 2023 · 1 comment

Comments

@gunhaxxor
Copy link

gunhaxxor commented Jan 24, 2023

Is your feature request related to a problem? Please describe.

What the title says. I get the impression that this component library enforces kebab-case for all its components. The official Vue documentation recommends using PascalCase for all components:
https://vuejs.org/guide/components/registration.html#component-name-casing

Describe the solution you'd like

Default to use PascalCase instead of kebab-case since vue supports resolving both kebab-case and PascalCase to it's registered PascalCase components:

Luckily, Vue supports resolving kebab-case tags to components registered using PascalCase. This means a component registered as MyComponent can be referenced in the template via both and . This allows us to use the same JavaScript component registration code regardless of template source.

Describe alternatives you've considered

I guess there could be some changes made to the enums file. But I also guess it's related to the variants configuration.

@quatrochan
Copy link
Collaborator

Good point. Fixed in v0.9.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants