vue-cli-plugin-bootstrap-breakpoint-indicator
v1.0.0-alpha.0
Published
Vue-cli plugin that displays a small indicator of the current Bootstrap breakpoint (e.g. XS, SM, MD, LG or XL).
Downloads
193
Maintainers
Readme
vue-bootstrap-breakpoint-indicator
A Vue.js component that displays a small indicator of the current Bootstrap breakpoint (e.g. XS, SM, MD, LG or XL) in the top-left of the page. Useful during development to know which breakpoint you're styling for as you resize the viewport or device emulate.
Note: the element the component renders is positioned absolutely with some default styles, so it should appear in the top left of the viewport. You can customize this display by adding your own styles against #vue-bootstrap-breakpoint-indicator
.
Installation
yarn add --dev vue-bootstrap-breakpoint-indicator
npm install --save-dev vue-bootstrap-breakpoint-indicator
Browser
See /examples/demo.html
Module
import VueBootstrapBreakpointIndicator from 'vue-bootstrap-breakpoint-indicator';
Usage
Once installed, it can be used in a template as below:
<vue-bootstrap-breakpoint-indicator></vue-bootstrap-breakpoint-indicator>
You may need to list it explicitly as a component you depend on when using it, e.g:
export default {
name: 'app',
components: {
'vue-bootstrap-breakpoint-indicator': VueBootstrapBreakpointIndicator
}
}
You can use the registration to give it an alias if you desire.