c-flag
v0.1.12
Published
Simple vue wrapper for the original [flag-icon-css](https://github.com/lipis/flag-icon-css) flag icon set , created by [lipis](https://github.com/lipis).
Downloads
20
Readme
c-flag
Simple vue wrapper for the original flag-icon-css flag icon set , created by lipis.
Project setup
yarn add c-flag or npm i c-flagUsage example
import cflag from 'c-flag/src/components/c-flag.vue'Props
|Name |Definiton |Values |Type |Default | |:-:|:-:|:-:|:-:|:-:| | ccode | Country code of the corresponding flag to be shown | Any country codes (Country codes can be browsed from here ISO.org.) | String | Nil | | level | Shows profeciency level as circle strength around the flag depending on the value selected. | 'fair', 'good', 'fluent', 'mother-tongue' | String | Nil | | country | Country name to be shown above the flag component. | Any string | String | Nil |
Ex : For India
<cflag :characteristics="[{level:'fluent',ccode:'in',country:'India'}]"/>