0.1.3 • Published 7 years ago
c-flagscomponent v0.1.3
Flags Component
Project setup
npm installCompiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run buildRun your tests
npm run testLints and fixes files
npm run lintCustomize configuration
How to use
After installing the component in the project using npm, you need to import the file flagsComponent.vue from node_modules like this:
import flagCss from "../../node_modules/flag-icon-css/css/flagsComponent.vue";
The component have only on prop it's "characteristics" it's an array of objects.
Each object take two keys : language(mandatory) and level(optional).
level : "fair", "good", "fluent", "mother-tongue".
language : A2 (ISO).
If the level key is absent in the props , only the flag will be displayed.
Examples :