Vivid API

Flag

Displays a country flag based on an ISO country code.

When to Use

Use Flag when you need to display a country flag as a visual identifier next to country-related content.

Best Practices

Use flags as a supporting visual cue. If the country name is already present as text, omit the label so the flag remains decorative.

Omit the label when the text already conveys the meaning

Don't rely on a flag alone to convey meaning