A simple container component inspired on Bootstrap container
$ npm install vue-container-component --save
Clone or download the component and save in your own project.
import container from 'vue-container-component';
new Vue({
components: {
container
}
})
var container = require('vue-container-component');
new Vue({
components: {
'container': container
}
})
<container>
<!-- content -->
</container>
<container fluid>
<!-- content -->
</container>
<container tag="section">
<!-- content -->
</container>
Option | Default | Type | Description |
---|---|---|---|
fluid | false | boolean | Enable container fluid |
tag | div | string | Custom element tag |
This project is licensed under the MIT License - see the LICENSE.md file for details