c-flag

0.1.12 • Public • Published

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-flag

Usage 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'}]"/>

Readme

Keywords

none

Package Sidebar

Install

npm i c-flag

Weekly Downloads

18

Version

0.1.12

License

none

Unpacked Size

15.2 kB

Total Files

17

Last publish

Collaborators

  • manjunathb
  • vishnuchandran