Vue Variantjs
VariantJS/Vue is the next version of the VueTailwind package built from scratch for Vue 3. It includes a set of Vue components designed to be highly customizable to adapt to any unique application design. This new version boasts significant improvements such as a smaller bundle size, better TypeScript integration, 100% test coverage, and simpler code built on Vue 3 + Vite.
To install VariantJS/Vue, you can follow these steps:
Install the package via npm:
npm install @variantjs/vue
Import the components in your Vue project:
import { TInput, TButton, TTextarea } from '@variantjs/vue';
Start using the components in your Vue templates:
<template>
<div>
<TInput v-model="inputValue" placeholder="Enter text" />
<TButton @click="submitForm">Submit</TButton>
</div>
</template>
<script>
export default {
data() {
return {
inputValue: ''
};
},
methods: {
submitForm() {
// Handle form submission
}
}
};
</script>
VariantJS/Vue is a new version of the VueTailwind package that offers customizable Vue components with improvements in bundle size, TypeScript integration, and code simplicity. It provides a solution for developers looking to create personalized designs without the constraints of predefined styles often found in traditional UI libraries. With cleaner code, better control over component settings, and support for modern technologies, VariantJS/Vue aims to enhance the development experience for Vue applications.