Vue Component for Country Flags

vue-country-flag

Country flags as a Vue Component

Vue 3 support

Since version 2.0.3, this component supports both Vue2 and Vue3 support.

In order to use it with Vue 3, please install the vue-country-flag-next package as follows:

npm install vue-country-flag-next

Vue 2 support

How to install

Get the package from NPM:

npm install vue-country-flag

How to use the component

Register CountryFlag component in your app. You can use two approaches:

  • in main.js you can mount it as a global Vue component:
import Vue from 'vue'
import CountryFlag from 'vue-country-flag'

Vue.component('country-flag', CountryFlag)
  • in a specific component (e.g.: Component.vue):
import CountryFlag from 'vue-country-flag'

new Vue({
    components: {
        CountryFlag
    }
})

Then, after the proper mounting, in your template you can call it like this:

    <country-flag country='it' size='big'/>
    <country-flag country='hr' size='normal'/>
    <country-flag country='fr' size='small'/>
    <country-flag country='rus'/>

API

Mandatory properties

Property Description Type Value
country ISO 3166-1 identifier of the country String one of the values defined here or in the extra flags

Optional properties

Property Description Type Value
size Flag size String small, normal, big
rounded Flag with rounded borders Boolean false by default

by default, the flag is displayed at normal size.

Available Flags

The flags are identified using the ISO 3166-1 standard.
This component currently supports both alpha-2 and alpha-3 alternatives.

Country Name alpha-2 alpha-3
Afghanistan af afg
Åland Islands ax ala
Albania al alb
Algeria dz dza
American Samoa as asm
Andorra ad and
Angola ao ago
Anguilla ai aia
Antarctica aq ata
Antigua and Barbuda ag atg
Argentina ar arg
Armenia am arm
Aruba aw abw
Australia au aus
Austria at aut
Azerbaijan az aze
Bahamas bs bhs
Bahrain bh bhr
Bangladesh bd bgd
Barbados bb brb
Belarus by blr
Belgium be bel
Belize bz blz
Benin bj ben
Bermuda bm bmu
Bhutan bt btn
Bolivia (Plurinational State of) bo bol
Bonaire, Sint Eustatius and Saba bq bes
Bosnia and Herzegovina ba bih
Botswana bw bwa
Bouvet Island bv bvt
Brazil br bra
Virgin Islands (British) vg vgb
British Indian Ocean Territory io iot
Brunei Darussalam bn brn
Bulgaria bg bgr
Burkina Faso bf bfa
Burundi bi bdi
Cambodia kh khm
Cameroon cm cmr
Canada ca can
Cabo Verde cv cpv
Cayman Islands ky cym
Central African Republic cf caf
Chad td tcd
Chile cl chl
China cn chn
Hong Kong hk hkg
Macao mo mac
Christmas Island cx cxr
Cocos (Keeling) Islands cc cck
Colombia co col
Comoros km com
Congo cg cog
Congo, Democratic Republic of the cd cod
Cook Islands ck cok
Costa Rica cr cri
Côte d’Ivoire ci civ
Croatia hr hrv
Cuba cu cub
Curaçao cw cuw
Cyprus cy cyp
Czechia cz cze
Denmark dk dnk
Djibouti dj dji
Dominica dm dma
Dominican Republic do dom
Ecuador ec ecu
Egypt eg egy
El Salvador sv slv
Equatorial Guinea gq gnq
Eritrea er eri
Estonia ee est
Ethiopia et eth
Falkland Islands (Malvinas) fk flk
Faroe Islands fo fro
Fiji fj fji
Finland fi fin
France fr fra
French Guiana gf guf
French Polynesia pf pyf
French Southern Territories tf atf
Gabon ga gab
Gambia gm gmb
Georgia ge geo
Germany de deu
Ghana gh gha
Gibraltar gi gib
Greece gr grc
Greenland gl grl
Grenada gd grd
Guadeloupe gp glp
Guam gu gum
Guatemala gt gtm
Guernsey gg ggy
Guinea gn gin
Guinea-Bissau gw gnb
Guyana gy guy
Haiti ht hti
Heard Island and McDonald Islands hm hmd
Holy See va vat
Honduras hn hnd
Hungary hu hun
Iceland is isl
India in ind
Indonesia id idn
Iran (Islamic Republic of) ir irn
Iraq iq irq
Ireland ie irl
Isle of Man im imn
Israel il isr
Italy it ita
Jamaica jm jam
Japan jp jpn
Jersey je jey
Jordan jo jor
Kazakhstan kz kaz
Kenya ke ken
Kiribati ki kir
Korea (Democratic People’s Republic of) kp prk
Korea, Republic of kr kor
Kuwait kw kwt
Kyrgyzstan kg kgz
Lao People’s Democratic Republic la lao
Latvia lv lva
Lebanon lb lbn
Lesotho ls lso
Liberia lr lbr
Libya ly lby
Liechtenstein li lie
Lithuania lt ltu
Luxembourg lu lux
North Macedonia mk mkd
Madagascar mg mdg
Malawi mw mwi
Malaysia my mys
Maldives mv mdv
Mali ml mli
Malta mt mlt
Marshall Islands mh mhl
Martinique mq mtq
Mauritania mr mrt
Mauritius mu mus
Mayotte yt myt
Mexico mx mex
Micronesia (Federated States of) fm fsm
Moldova, Republic of md mda
Monaco mc mco
Mongolia mn mng
Montenegro me mne
Montserrat ms msr
Morocco ma mar
Mozambique mz moz
Myanmar mm mmr
Namibia na nam
Nauru nr nru
Nepal np npl
Netherlands nl nld
New Caledonia nc ncl
New Zealand nz nzl
Nicaragua ni nic
Niger ne ner
Nigeria ng nga
Niue nu niu
Norfolk Island nf nfk
Northern Mariana Islands mp mnp
Norway no nor
Oman om omn
Pakistan pk pak
Palau pw plw
Palestine, State of ps pse
Panama pa pan
Papua New Guinea pg png
Paraguay py pry
Peru pe per
Philippines ph phl
Pitcairn pn pcn
Poland pl pol
Portugal pt prt
Puerto Rico pr pri
Qatar qa qat
Réunion re reu
Romania ro rou
Russian Federation ru rus
Rwanda rw rwa
Saint Barthélemy bl blm
Saint Helena, Ascension and Tristan da Cunha sh shn
Saint Kitts and Nevis kn kna
Saint Lucia lc lca
Saint Martin (French part) mf maf
Saint Pierre and Miquelon pm spm
Saint Vincent and the Grenadines vc vct
Samoa ws wsm
San Marino sm smr
Sao Tome and Principe st stp
Saudi Arabia sa sau
Senegal sn sen
Serbia rs srb
Seychelles sc syc
Sierra Leone sl sle
Singapore sg sgp
Sint Maarten (Dutch part) sx sxm
Slovakia sk svk
Slovenia si svn
Solomon Islands sb slb
Somalia so som
South Africa za zaf
South Georgia and the South Sandwich Islands gs sgs
South Sudan ss ssd
Soviet Union su sun
Spain es esp
Sri Lanka lk lka
Sudan sd sdn
Suriname sr sur
Svalbard and Jan Mayen sj sjm
Eswatini sz swz
Sweden se swe
Switzerland ch che
Syrian Arab Republic sy syr
Taiwan, Province of China tw twn
Tajikistan tj tjk
Tanzania, United Republic of tz tza
Thailand th tha
Timor-Leste tl tls
Togo tg tgo
Tokelau tk tkl
Tonga to ton
Trinidad and Tobago tt tto
Tunisia tn tun
Turkey tr tur
Turkmenistan tm tkm
Turks and Caicos Islands tc tca
Tuvalu tv tuv
Uganda ug uga
Ukraine ua ukr
United Arab Emirates ae are
United Kingdom of Great Britain and Northern Ireland gb gbr
United States of America us usa
United States Minor Outlying Islands um umi
Uruguay uy ury
Uzbekistan uz uzb
Vanuatu vu vut
Venezuela (Bolivarian Republic of) ve ven
Viet Nam vn vnm
Virgin Islands (U.S.) vi vir
Wallis and Futuna wf wlf
Western Sahara eh esh
Yemen ye yem
Zambia zm zmb
Zimbabwe zw zwe

Extra flags

Country Name Flag Code
Catalonia es-ca
England gb-eng
Europe eu
Galles gb-wls
Kosovo xk
Scotland gb-sct
United Nations un

Credits

The flags used for this Vue components are provided by Flag Icons CSS.

Contributing

Please follow the guidelines here.

Download Details:

Author: P3trur0

Source Code: https://github.com/P3trur0/vue-country-flag

#vue #vuejs #javascript

What is GEEK

Buddha Community

Vue Component for Country Flags
Luna  Mosciski

Luna Mosciski

1600583123

8 Popular Websites That Use The Vue.JS Framework

In this article, we are going to list out the most popular websites using Vue JS as their frontend framework.

Vue JS is one of those elite progressive JavaScript frameworks that has huge demand in the web development industry. Many popular websites are developed using Vue in their frontend development because of its imperative features.

This framework was created by Evan You and still it is maintained by his private team members. Vue is of course an open-source framework which is based on MVVM concept (Model-view view-Model) and used extensively in building sublime user-interfaces and also considered a prime choice for developing single-page heavy applications.

Released in February 2014, Vue JS has gained 64,828 stars on Github, making it very popular in recent times.

Evan used Angular JS on many operations while working for Google and integrated many features in Vue to cover the flaws of Angular.

“I figured, what if I could just extract the part that I really liked about Angular and build something really lightweight." - Evan You

#vuejs #vue #vue-with-laravel #vue-top-story #vue-3 #build-vue-frontend #vue-in-laravel #vue.js

Sofia Kelly

Sofia Kelly

1578061020

10 Best Vue Icon Component For Your Vue.js App

Icons are the vital element of the user interface of the product enabling successful and effective interaction with it. In this article, I will collect 10 Vue icon component to bring more interactivity, better UI design to your Vue application.

1. Animated SweetAlert Icons for Vue

A clean and simple Vue wrapper for SweetAlert’s fantastic status icons. This wrapper is intended for users who are interested in just the icons. For the standard SweetAlert modal with all of its bells and whistles, you should probably use Vue-SweetAlert 2

Animated SweetAlert Icons for Vue

Demo: https://vue-sweetalert-icons.netlify.com/

Download: https://github.com/JorgenVatle/vue-sweetalert-icons/archive/master.zip

2. vue-svg-transition

Create 2-state, SVG-powered animated icons.

vue-svg-transition

Demo: https://codesandbox.io/s/6v20q76xwr

Download: https://github.com/kai-oswald/vue-svg-transition/archive/master.zip

3. Vue-Awesome

Awesome SVG icon component for Vue.js, with built-in Font Awesome icons.

Vue-Awesome

Demo: https://justineo.github.io/vue-awesome/demo/

Download: https://github.com/Justineo/vue-awesome/archive/master.zip

4. vue-transitioning-result-icon

Transitioning Result Icon for Vue.js

A scalable result icon (SVG) that transitions the state change, that is the SVG shape change is transitioned as well as the color. Demonstration can be found here.

A transitioning (color and SVG) result icon (error or success) for Vue.

vue-transitioning-result-icon

Demo: https://transitioning-result-icon.dexmo-hq.com/

Download: https://github.com/dexmo007/vue-transitioning-result-icon/archive/master.zip

5. vue-zondicons

Easily add Zondicon icons to your vue web project.

vue-zondicons

Demo: http://www.zondicons.com/icons.html

Download: https://github.com/TerryMooreII/vue-zondicons/archive/master.zip

6. vicon

Vicon is an simple iconfont componenet for vue.

iconfont
iconfont is a Vector Icon Management & Communication Platform made by Alimama MUX.

vicon

Download: https://github.com/Lt0/vicon/archive/master.zip

7. vue-svgicon

A tool to create svg icon components. (vue 2.x)

vue-svgicon

Demo: https://mmf-fe.github.io/vue-svgicon/v3/

Download: https://github.com/MMF-FE/vue-svgicon/archive/master.zip

8. vue-material-design-icons

This library is a collection of Vue single-file components to render Material Design Icons, sourced from the MaterialDesign project. It also includes some CSS that helps make the scaling of the icons a little easier.

vue-material-design-icons

Demo: https://gitlab.com/robcresswell/vue-material-design-icons

Download: https://gitlab.com/robcresswell/vue-material-design-icons/tree/master

9. vue-ionicons

Vue Icon Set Components from Ionic Team

Design Icons, sourced from the Ionicons project.

vue-ionicons

Demo: https://mazipan.github.io/vue-ionicons/

Download: https://github.com/mazipan/vue-ionicons/archive/master.zip

10. vue-ico

Dead easy, Google Material Icons for Vue.

This package’s aim is to get icons into your Vue.js project as quick as possible, at the cost of all the bells and whistles.

vue-ico

Demo: https://material.io/resources/icons/?style=baseline

Download: https://github.com/paulcollett/vue-ico/archive/master.zip

I hope you like them!

#vue #vue-icon #icon-component #vue-js #vue-app

Henry Short

Henry Short

1578472348

7 Best Vue Highlight Component for Your Vue App

Vue highlight is often used to highlight text and syntax. Here are the 7 Vue highlight components I’ve collected.

1. vue-snippets

Vue3 Snippets, This extension adds Vue3 Code Snippets into Visual Studio Code.

vue-snippets

Download


2. vim-vue-plugin

Vim syntax and indent plugin for vue files

vim-vue-plugin

Download


3. vue-highlighter

Vue directive for highlight multiple istances of a word.

vue-highlighter

Download


4. vue-code-highlight

Beautiful code syntax highlighting as Vue.js component.

vue-code-highlight

Download


5. Vue Prism Editor

A dead simple code editor with syntax highlighting and line numbers. 7kb/gz

Features

  • Code Editing ^^
  • Syntax highlighting
  • Undo / Redo
  • Copy / Paste
  • The spaces/tabs of the previous line is preserved when a new line is added
  • Works on mobile (thanks to contenteditable)
  • Resize to parent width and height
  • Support for line numbers
  • Support for autosizing the editor
  • Autostyling the linenumbers(optional)

Vue Prism Editor

Demo

Download


6. vue-highlight-words

A simple port from react-highlight-words

Vue component to highlight words within a larger body of text.

vue-highlight-words

Demo

Download


7. vue-highlight-text

Vue component for highlight multiple istances of a word.

vue-highlight-text

Demo

Download


Thank for read!

#vue-highlight #vue #vue-highlight-component #highlight-vue

Alfie Kemp

Alfie Kemp

1578332107

Collection of 10 Vue Markdown Component for Vue.js App in 2020

Markdown is a way to style text on the web. You control the display of the document; formatting words as bold or italic, adding images, and creating lists are just a few of the things we can do with Markdown.

The 10 Vue markdown components below will give you a clear view.

1. Vue Showdown

Use showdown as a Vue component.

Vue Showdown

View Demo

Download Source

2. showdown-markdown-editor

A markdown editor using codemirror and previewer using showdown for Vue.js.

showdown-markdown-editor

View Demo

Download Source

3. markdown-it-vue

The vue lib for markdown-it.

markdown-it-vue

View Demo

Download Source

4. perfect-markdown

perfect-markdown is a markdown editor based on Vue & markdown-it. The core is inspired by the implementation of mavonEditor, so perfect-markdown has almost all of the functions of mavonEditor. What’s more, perfect-markdown also extends some features based on mavonEditor.

perfect-markdown

View Demo

Download Source

5. v-markdown-editor

Vue.js Markdown Editor component.

This is image title

View Demo

Download Source

6. markdown-to-vue-loader

Markdown to Vue component loader for Webpack.

markdown-to-vue-loader

View Demo

Download Source

7. fo-markdown-note Component for Vue.js

fo-markdown-note is a Vue.js component that provides a simple Markdown editor that can be included in your Vue.js project.

fo-markdown-note is a thin Vue.js wrapper around the SimpleMDE Markdown editor JavaScript control.

fo-markdown-note Component for Vue.js

View Demo

Download Source

8. Vue-SimpleMDE

Markdown Editor component for Vue.js. Support both vue1.0 & vue2.0

Vue-SimpleMDE

View Demo

Download Source

9. mavonEditor

A nice vue.js markdown editor. Support WYSIWYG editing mode, reading mode and so on.

mavonEditor

View Demo

Download Source

10. vue-markdown

A Powerful and Highspeed Markdown Parser for Vue.

vue-markdown

View Demo

Download Source

Thank for read!

#vue-markdown #vue-js #vue-markdown-component #vue

Andrew French

1578387349

10 Best Vue Form Component for Your Vue App

Vue Form component is a tool to help you solve the problem of allowing end-users to interact with the data and modify the data in your application.
In this article I will come up with 11 Vue form components that I find very helpful.

1. Vuetify-Form-Base

vuetify-form-base is a Vue Component and can easily integrated into any Vue Project.

The Schema-Object has the same structure as the Value-Object. Create a Schema by cloning the Value-Object and replace the Values of the Data-Object by Definitions for your your Schema. The corresponding Schema-Object defines type, layout and functional behaviour of your Form.

Features

  • Vue-Component
  • integrates UI framework Vuetify with responsive Layout and Support of Grid
  • Use a lot of Vuetify Control & Input types inclusive available API-Props
  • Get full configurable Forms based on Schema Definition
  • Edit plain or deep nested objects including Arrays, without the Need to flatten it
  • Get a Full reactive Result
  • Listen on ‘Resize’, ‘Focus’, ‘Input’, ‘Click’, ‘Swipe’ and ‘Update’ Events
  • Use Slots to pass Header and Footer into a Control. Or replace a Control by Slot
  • Configurable CSS Style

Vuetify-Form-Base

Demo

Download


2. FormVuelar

FormVuelar is a set of predefined vue form components which are designed to automatically display errors coming back from your backend. It works out of the box with the error message bag that is returned by Laravel when submitting an ajax form.

FormVuelar

Demo

Download


3. vue-form-components

Clean & minimal vue form elements with validation.

vue-form-components

Demo

Download


4. example-list-form

Form Dinamis dengan menggunakan Vue.js.

example-list-form

Download


5. vue-genesis-forms

Easy create forms in Vue.js

vue-genesis-forms

Demo

Download


6. FormBuilder

Laravel Enso Form Builder is a customizable, template based form creator, so you can quickly create forms with the minimum amount of effort

FormBuilder

Demo

Download


7. vfg-field-array

A vue-form-generator field to handle arrays.

vfg-field-array

Download


8. vue-formbuilder2.0

ElementUI Form Builder.

Basic code was clone from https://github.com/jmeei/vue-formbuilder, and did some improve.

vue-formbuilder2.0

Demo

Download


9. vue-interactive-paycard

A fantastic credit card form with smooth and sweet micro-interactions. Includes number formatting, validation and automatic card type detection. Built with vuejs and also fully responsive.

vue-interactive-paycard

Demo

Download


10. vue-dynamic-form-component

vue-dynamic-form-component is a dynamic form component base on element-ui and async-validator. You just need to write descriptors(reference to async-validator) of the data you want, vue-dynamic-form-component will generate the form automatically.

vue-dynamic-form-component

Demo

Download


Thank for read!

#vue-js #vue-form #vue-form-component #form-component