vue3-bs
vue3-bs
A lightweight Vue 3 component library built for Bootstrap 5 styles.
Note: This library provides Vue 3 components that utilize Bootstrap 5 classes. It does not include the Bootstrap JS or CSS files. You must include Bootstrap CSS in your project separately.
Installation
Install the package via npm:
npm install vue3-bs
You will also need Bootstrap 5 CSS if you haven't already installed it:
npm install bootstrap
Usage
1. Global Registration
Register all components globally in your Vue application entry point (e.g., main.js or main.ts).
import { createApp } from 'vue';
import App from './App.vue';
// Import Bootstrap CSS
import 'bootstrap/dist/css/bootstrap.min.css';
// Import the library
import Vue3Bs from 'vue3-bs';
import 'vue3-bs/dist/vue3-bs.css'; // Required for component styles
const app = createApp(App);
app.use(Vue3Bs);
app.mount('#app');
2. Local Import
You can also import individual components directly in your Vue components.
<script setup>
import { VInput, VButton } from 'vue3-bs';
</script>
<template>
<VInput
label="Email Address"
placeholder="name@example.com"
/>
</template>
Features
- Vue 3 Composition API: Built using the latest Vue 3 features.
- Bootstrap 5 Compatible: Designed to work seamlessly with Bootstrap 5 utility classes and grid system.
- Form Components: Includes a suite of form components like
VInput,VSelect,VCheckbox, etc.
Components
For a full list of available components and their usage, please refer to COMPONENTS.md.
Development
For instructions on how to contribute or run the project locally, please see DEVELOPMENT.md.
License
MIT
Related Packages
A lightweight Vue 3 component library for Bootstrap 5.3 with dual-mode support (...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.34 | ^3.0.0 | MIT | |
| 1.0.33 | ^3.0.0 | MIT | |
| 1.0.31 | ^3.0.0 | MIT | |
| 1.0.30 | ^3.0.0 | MIT | |
| 1.0.29 | ^3.0.0 | MIT | |
| 1.0.28 | ^3.0.0 | MIT | |
| 1.0.27 | ^3.0.0 | MIT | |
| 1.0.26 | ^3.0.0 | MIT | |
| 1.0.25 | ^3.0.0 | MIT | |
| 1.0.24 | ^3.0.0 | MIT | |
| 1.0.23 | ^3.0.0 | MIT | |
| 1.0.22 | ^3.0.0 | MIT | |
| 1.0.21 | ^3.0.0 | MIT | |
| 1.0.20 | ^3.0.0 | MIT | |
| 1.0.19 | ^3.0.0 | MIT | |
| 1.0.18 | ^3.0.0 | MIT | |
| 1.0.17 | ^3.0.0 | MIT | |
| 1.0.16 | ^3.0.0 | MIT | |
| 1.0.15 | ^3.0.0 | MIT | |
| 1.0.13 | ^3.0.0 | MIT | |
| 1.0.12 | ^3.0.0 | MIT | |
| 1.0.0 | ^3.0.0 | MIT |