uiv is a Bootstrap 3 component lib implemented by Vue 2.
- All components ~20KB Gziped.
- Dependencies only Vue & Bootstrap CSS.
- No extra CSS.
- Individually import supported.
- IE 9+ & modern browsers supported.
- SSR (server-side rendering) supported.
- All env supported:
To check out live examples and docs, visit https://uiv.wxsm.space.
If you are using module bundlers such as Webpack, you can directly include package into your project via:
$ npm install uiv --save
$ yarn add uiv
Then register uiv components and directives all at once in your app's entry:
That's it. Happy coding!
All components & directives will be installed with no prefix by default, you can add any prefix to them to avoid conflicts with other libs if needed.
- Components such as
- Directives such as
- Global methods such as
If you don't want all of the components for some reason (e.g. to save the bundle size), you can also import them individually.
You can load & install uiv package directly in browsers. For example:
<!-- Remember to import Vue and Bootstrap CSS file before this! -->
This will simply load the latest version of
uiv.min.js into your page. For detail usages (e.g. load specify version, IMPORTANT in production mode) and different CDN providers, you can visit:
Complete Usage Example
<!-- index.html -->Tab content 1.Tab content 2.
This will create a working Tabs component on your page.
Detailed changes for each release are documented in the release notes.
Welcome and thanks to use and contribute to this project. Your support is very important.
If you found any problem / bug during the use of uiv, or have any suggustion that can make this lib better, please create an issue.
Pull requests are also welcome! However, before you started working on a PR, it is highly recommend to create an issue with your idea first, so people can know what's going to happen and avoid duplicated work.
# install dependenciesnpm install# serve demos & docs with hot reload at localhost:8080npm run dev# build distnpm run dist# build documentnpm run build# run all testsnpm test