Flag
Country flag icon. Pass an ISO 3166-1 alpha-2 country code; the image is loaded from /flags/{code}.png at runtime.
Default
Single flag, inline with text.
United StatesInline list
Use Flag in a list of countries.
United States
United Kingdom
Japan
Indonesia
Germany
API Reference
Props, events, and slots for each sub-component.
Flag
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| country | string | — | ISO 3166-1 alpha-2 country code (e.g. 'us', 'id', 'jp'). Lowercased automatically. |
| countryName | string | — | Used for alt and title text. |