Pass a country code. Put a CountryFlagBadge inside the flag of the selected choice, so the check sits on the flag.
The sample also uses Choice Card and Radio Group. One command adds them with this item:
site-language.tsx
CountryFlag
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default""lg""sm""xl""xs" | "default" | |
| variant | "circle""rectangle""square" | "rectangle" | |
| code | string | null | — | ISO 3166-1 alpha-2 ("DE", any case), or a subdivision ("GB-ENG"). Unknown: a globe. |
| named | boolean | false | Name the flag with the country name in locale ("Germany"): an image with that name. Default false: the flag is decorative, for a flag next to a written name. An aria-label wins. |
| locale | string | — | The language of the name (Intl.DisplayNames). Default: the DisplayLocaleProvider locale. |
| pop | boolean | false | Pop the art in when code changes: scale 0.9 to 1 and a fade on the popup clock. |
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |
CountryFlagBadge
<span>| Prop | Type | Default | Description |
|---|---|---|---|
| ...props | <span> attributes | — | Every other attribute goes to the <span>, with a ref. |



