vuestrap-base-components

Web components that extend Bootstrap 4 - http://kzima.github.io/vuestrap-base-components/#/accordion

  • Owner: kzima/vuestrap-base-components
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Vuestrap Base Components

Vuestrap Base Components extend Bootstrap 4. Built with vuestrap, plain Vue.js and Webpack.

DEMO

Documentation

QUICK USE

For compiled components, use it like this:

Bower

bower install vuestrap-base --save-dev
<link href="bower_components/vuestrap-base/dist/vuestrapBase.min.css" rel='stylesheet' type='text/css'>
<script src="bower_components/vuestrap-base/dist/vuestrapBase.min.js"></script>

NPM

npm install vuestrap-base-components --save-dev
import vuestrapBase from vuestrap-base-components

And then in your Vue instance:

new Vue({
	el: '#app',
	components: { 'vs-alert': vuestrapBase.alert }
})

-- OR --

If you chosen to work with source components, just import* desired components like so:

import { vsAlert, vsButton } from 'vuestrap-alert/src/components'

and then load it in your Vue instance:

new Vue({
	el: '#app',
	components: { vsAlert, vsButton }
})

*Note: You will need Babel Loader in your Webpack config file to support ES6 syntax.

You can then use icon component in your html, like so:

<vs-alert>Hello</vs-alert>

THEMING

To be able to use your app theme with component's scss variables, you will need to use vuestrap-theme-loader in your webpack config file.

npm install vuestrap-theme-loader --save-dev

See vuestrap-starter for a webpack config example with theme loader.

TODO

  • document events
  • testing

Main metrics

Overview
Name With Ownerkzima/vuestrap-base-components
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 4)
Platform
License:MIT License
所有者活动
Created At2015-11-30 23:38:59
Pushed At2017-03-29 15:26:47
Last Commit At2017-03-29 10:26:40
Release Count25
Last Release Name0.8.10 (Posted on )
First Release Name0.1.0 (Posted on )
用户参与
Stargazers Count251
Watchers Count7
Fork Count41
Commits Count104
Has Issues Enabled
Issues Count21
Issue Open Count8
Pull Requests Count8
Pull Requests Open Count0
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private