Skip to content
V

vue-flag-icon

vue flag icon component

by vikkio88Free

#1147in UI Libraries
0In stores

Description

vue-flag-icon is a Vue component that shows country flags. It is a wrapper for the flag-icon-css library, and you give it an ISO country cod…

Highlights

  • Country flag component for Vue
  • Flag chosen by ISO code, bindable from data
  • Square or rectangular flags
  • Custom title prop
  • Install paths for Vue 2 and Vue 3

Ratings & Reviews

No ratings yet

Be the first to rate vue-flag-icon.

People also visit

R

react-flags

Flags of the world

UI Libraries
Launch
G

GeoIcons

Geographic map icons for every country, territory, and world region

UI Libraries
Launch
R

react-flagpack

Gorgeous flag components for your React project

UI Libraries
Launch
R

react-circle-flags

A React component with a collection of 300+ minimal circular SVG country flags

UI Libraries
Launch
O

oh-vue-icons

Include inline SVG icons from different popular icon packs in Vue 2 & 3 easily

UI Libraries
Launch
V

vue-material-design-icons

A collection of material design icons as Vue single file components

UI Libraries
Launch

vue-flag-icon FAQ

What is vue-flag-icon?

A Vue component that displays a country flag from an ISO code, based on flag-icon-css.

Which Vue versions does it support?

The README lists a legacy install for Vue 2 and a separate install for Vue 3 and later.

How do I show a flag?

Register the component with the use directive, then pass the iso code, either fixed or bound from data.

Can I make the flag square?

Yes. The squared prop defaults to true, which renders a square flag. Set it to false for a rectangular flag.

How do I set the title?

Pass the title prop. If you leave it out, the title is the iso code.

What are the best vue-flag-icon alternatives?

Popular alternatives to vue-flag-icon include react-flags, GeoIcons and react-flagpack. See all vue-flag-icon alternatives

Developer Stuff

Badges