Vue

February 14, 2024

Submitting Inertia Forms to a New Window in Laravel/Vue Applications

In Laravel applications using Inertia.js and Vue.js, there might be scenarios where you need to submit a form to a new window….

Read More…

January 28, 2024

Tailwind CSS and Dynamic or Conditional Class Names in Vue

Tailwind CSS is designed to include only the classes used in your project in the final build CSS file. This approach keeps…

Read More…

January 3, 2024

Overriding Tailwind CSS Classes in VueJS Components

Example Scenario: Consider a Card.vue component with default Tailwind CSS styling. <span class="hljs-tag"><<span class="hljs-name">template</span>></span> <span class="hljs-tag"><<span class="hljs-name">div</span> <span class="hljs-attr">class</span>=<span class="hljs-string">"bg-gray-200 p-4 rounded"</span>></span>…

Read More…

December 11, 2023

Vue: <template> Is Not Considered a Root Element

In Vue, the <template> tag itself is not considered as a “root element” in a component. It’s part of Vue’s template syntax…

Read More…