Vue Flag Icon Component
JSON →vue-flag-icon is a Vue 2 component designed to display country flags within Vue applications, leveraging the popular `flag-icon-css` library. It provides a simple `<flag>` component that accepts an `iso` prop for the two-letter ISO country code, automatically rendering the corresponding flag. Additional props like `squared` (to toggle between rectangular and square aspect ratios, `true` by default) and `title` (for accessibility and hover text) are supported. The package is currently at version 2.1.0, primarily targeting Vue 2. Due to its dependency on Vue 2's API (`Vue.use()` for global registration), it is generally considered to be in maintenance mode, with no active development for Vue 3 compatibility. It distinguishes itself by offering a straightforward wrapper for `flag-icon-css`, simplifying flag integration for Vue 2 projects without requiring direct CSS manipulation for each flag.
Traffic · last 30 days ↓43% vs prev 7d
top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany