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
Back To Top
Search