GeoIcons library brings 799 country map shapes to Vue 3 as components
A new open-source package called GeoIcons (@geoicons/vue) provides 799 country, area, and subdivision map-shape icons as individual Vue 3 components. Developers can install the package via npm and import icons using PascalCase country names such as UnitedStates or France. The package ships as ES modules with tree-shaking support, meaning only the icons explicitly imported are included in the final bundle. Icons default to decorative mode with aria-hidden set to true, and an aria-label prop can be added when the icon serves as the sole identifier for a country. The library requires Vue 3.0 or newer, has no additional runtime dependencies, and leverages Vue 3.5's built-in useId() for stable server-side rendering.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in