Vivid API

Flag

Displays a country flag based on an ISO country code.

Flag

Use Flag to display a country flag based on an ISO 3166-1 alpha-2 country code.

Size

The size attribute controls the rendered dimensions using the same predefined scale as vwc-icon.

Decorative vs Informative

When label is omitted (or whitespace-only), the flag is treated as decorative and aria-hidden="true" is applied automatically.