Couldn't use VueJS component with "kebab-case" in HTML template #490
Answered
by
adamwathan
sarukomine
asked this question in
Help
-
If I wanna to use <template>
<dialog ...>
<dialog-overlay ... />
</dialog>
</template>
<script>
import { Dialog, DialogOverlay } from '@headlessui/vue'
export default {
components: {
Dialog,
DialogOverlay,
}
}
</script> I am thinking that why does it must be |
Beta Was this translation helpful? Give feedback.
Answered by
adamwathan
May 8, 2021
Replies: 1 comment 1 reply
-
Lowercase "dialog" is a standard HTML element so Vue doesn't think you are trying to use a component when you write it that way. If you want to use kebab case, you'll have to alias it to a different name when registering the component in your script block:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
sarukomine
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Lowercase "dialog" is a standard HTML element so Vue doesn't think you are trying to use a component when you write it that way. If you want to use kebab case, you'll have to alias it to a different name when registering the component in your script block: