6.0.4 • Published 6 years ago
@jporto/vue-flex v6.0.4
@jporto/vue-flex
A Vue JS Flex component for mobile first layouts
Checkout the Demo which contains the component documentation.
If you enjoy this component, feel free to drop me feedback, either via the repository, or via joseporto@icloud.com.
Also, please verify my project at torre.co.
Instalation
yarn add @jporto/vue-flex
or
npm install @jporto/vue-flex
Setup
Vue.js
- Add the following to you application main.js file:
import VueFlex from '@jporto/vue-flex'
Vue.use(VueFlex)
import the styles
- Add a similar object to configure the breakpoints, before importing the stylesheet
$var-breakpoints: (
"pm": 320,
"pl": 375,
"ts": 425,
"tw": 768,
"ds": 1024,
"dw": 1440
);
@import '@jporto/vue-flex/dist/@jporto/main.scss';
NuxtJS
Similar as with Vue.js, but I recomend adding a
components.js
file to plugins, with the following content:
import Vue from 'vue'
import VueFlex from '@jporto/vue-flex';
Vue.use(VueFlex);
- Register the plugin in
nuxt.config.js
:
plugins: [
'@/plugins/components',
],
6.0.4
6 years ago
6.0.3
6 years ago
6.0.2
6 years ago
6.0.1
6 years ago
6.0.0
6 years ago
5.0.0
6 years ago
4.0.5
6 years ago
4.0.4
6 years ago
4.0.3
6 years ago
4.0.2
6 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.0
6 years ago
2.0.0
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago