skip to Main Content

Html – Vue.js Component Only Renders Background Colors from a Subset of Tailwind CSS Colors

I have a card component: <template> <div class="z-50 flex w-[15vw] flex-col items-center justify-center gap-5 rounded-md border-2 border-gray-300 bg-[#f3f3f3] p-5 transition-all duration-300 hover:scale-105 hover:font-bold" > <div class="w-[100%]"> <div :class="color" class="flex w-fit items-center justify-center rounded-3xl px-2 text-sm text-white" > {{ collection }}…

VIEW QUESTION

Laravel – Inertia VueJS triggering the input file click event from a separate button

I am trying to trigger an event from button to input file. Below is the code <template> <div> <PrimaryButton type="button" :for="props.videoId" :disabled="uploading" @click="selectVideo" > Upload </PrimaryButton> <input :hidden="true" :ref="videoInput" :id="props.videoId" type="file" @change="handleVideoLoad" // for emits :disabled="uploading" /> </div> </template> <script…

VIEW QUESTION

Javascript – v-slot is not compatible with nuxt version 3

Before, I coded nuxt beta + used vuetify's UI. This is my custom text-field component <script setup lang="ts"> </script> <template> <v-text-field class="text-field" v-bind="$attrs" variant="solo"> <template v-for="(_, name) in $slots" #[name]="slotData"> <slot :name="name" v-bind="slotData" /> </template> </v-text-field> </template> But after I…

VIEW QUESTION
Back To Top
Search