GeoIcons brings 422 country and area icons to Angular as standalone components
A new open-source package called GeoIcons fills a long-standing gap in Angular's icon ecosystem by offering 422 country and area icons as standalone components. Each icon is identified by its ISO 3166 alpha-2 code in PascalCase, allowing developers to import only the icons they use, keeping bundle sizes lean. The package requires Angular 15.1 or newer due to its use of hostDirectives, with self-closing tag syntax supported from Angular 16 onward. Styling is handled through explicit inputs — including size, stroke, fill, and aria-label — since Angular does not support attribute spread. Installation is a single npm command, and a live catalog is available at geoicons.io.
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