Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

172
Views
Dynamically load a Vuetify component in vue 3

I am trying to load vuetify components dynamically in a vue 3 project using the following code:

<template>
   <v-chip>try</v-chip>
   <component :is="object.tag">{{ object.content }}</component>
</template>
<script>
export default {
  name: 'component1',
  data: () => ({
    object: {
      tag: 'v-chip',
      content: 'hey'
    },
  }),
}
</script>

Trying this I get no errors, using v-chip component normally works fine but the second component doesn't work well and doesn't get initialized as a vuetify component instead I get the following: enter image description here I have tried using VChip or vChip but they also don't work and there is no errors at all. I also tried to use a none vuetify component, one that I have created and it loads successfully.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

object.tag should be the imported component, not a string.

// import only needed if ala-carte
import VChip from 'somewhere'
{ object: { tag: VChip } }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!