Flags Component
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Run your tests
npm run test
Lints and fixes files
npm run lint
Customize 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 :