outhebox/blade-flags
1,759 SVG country and language flags for Laravel Blade plus Vue, React, and vanilla JS. Includes default, circle, and flat variants, 128 language mappings, and locale/regional support (e.g., en-US, fr-CA). Great for switchers and forms.
size-4, shrink-0, etc.)
width/height from SVGs, use width:100%;height:100% so the SVG fills its containerdisplay:inline-flex to the span wrapperAffected packages: [@blade-flags](https://github.com/blade-flags)/core, [@blade-flags](https://github.com/blade-flags)/react, [@blade-flags](https://github.com/blade-flags)/vue
This package aims for broad compatibility by mirroring upstream flag collections. Inclusion of any flag does not imply endorsement. The author of this package stands with Palestine (the Palestine flag is featured in the project cover). If you want to exclude specific flags, you can do so in your application/UI, or exclude them during the build via bin/build.sh.
This package aims for broad compatibility by mirroring upstream flag collections. Inclusion of any flag does not imply endorsement. The author of this package stands with Palestine (the Palestine flag is featured in the project cover). If you want to exclude specific flags, you can do so in your application/UI, or exclude them during the build via bin/build.sh.
First release of the JavaScript flag packages, providing the same 1,759 SVG flags from blade-flags as tree-shakeable JS modules.
| Package | Description |
|---|---|
[@blade-flags](https://github.com/blade-flags)/core |
SVG strings as JS modules + resolveFlag() helper |
[@blade-flags](https://github.com/blade-flags)/vue |
<Flag> component for Vue 3.3+ |
[@blade-flags](https://github.com/blade-flags)/react |
<Flag> component for React 18+ |
npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/vue # Vue
npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/react # React
npm install [@blade-flags](https://github.com/blade-flags)/core # Vanilla JS
Every flag is a named export — import only what you need:
import { countryUs, countryGb } from '[@blade-flags](https://github.com/blade-flags)/core/flags/circle'
Or use the full variant map for dynamic runtime lookup:
import { circleFlags } from '[@blade-flags](https://github.com/blade-flags)/core/flags/circle'
import { resolveFlag } from '[@blade-flags](https://github.com/blade-flags)/core'
const svg = resolveFlag(circleFlags, 'us')
The package now ships with three flag styles — 1,759 flags total:
| Variant | Component | Countries | Languages |
|---|---|---|---|
| Default (rounded) | <x-flag-country-us /> |
264 | 281 |
| Circle | <x-flag-circle-country-us /> |
405 | 275 |
| Flat (4:3) | <x-flag-flat-country-us /> |
270 | 264 |
Override default language-to-country mappings via config:
// config/blade-flags.php
'language_overrides' => [
'ar' => ['default' => 'sa'],
'en' => ['default' => 'us'],
],
The same flags are now available as npm packages for Vue, React, and vanilla JS:
[@blade-flags](https://github.com/blade-flags)/core — SVG strings as tree-shakeable JS modules[@blade-flags](https://github.com/blade-flags)/vue — <Flag> component for Vue 3[@blade-flags](https://github.com/blade-flags)/react — <Flag> component for React 18+npm install [@blade-flags](https://github.com/blade-flags)/core [@blade-flags](https://github.com/blade-flags)/vue
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.4...1.6.0
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.3...1.5.4
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.2...1.5.3
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.1...1.5.2
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.5.0...1.5.1
Full Changelog: https://github.com/MohmmedAshraf/blade-flags/compare/1.2.1...1.5.0
Fix fallback icon not working!
Add support for Laravel 10
Add support for Laravel 8
Add missing flags #8 , #9 Add a default fallback flag if the requested flag is missing in the config
Add Kurdistan Flag for the Kurdish language #4 by @renwarkurd Correct the language code for Iraq Arabic language #5 by @renwarkurd
Correct the Basque language flag (#1)
Use twemoji flags instated of circle-flags
Initial release
How can I help you explore Laravel packages today?