b-flag
v0.0.4
Published
Simple vue wrapper for the original [flag-icon-css](https://github.com/lipis/flag-icon-css) created by lipis.
Downloads
5
Readme
b-flag
Simple vue wrapper for the original flag-icon-css created by lipis.
Project setup
yarn add b-flag -D or npm i b-flag --save-dev
Usage example
import bflag from 'b-flag/src/components/b-flag.vue'
Props
name : country | default: in | type: string
|Name |Definiton |Values |Type |Default | |:-:|:-:|:-:|:-:|:-:| | country | Country code of the corresponding flag to be shown | Any country codes | String | 'in' |
eg : For greece
<bflag country='gr'/>
Country codes and flags can be browsed from here flag-icon-css.lip.is.
By default 'in' ( India ) flag is shown if no props are passed.