Skip to content

VCountry

Props

NameTypeDescription
codestringISO 3166-1 alpha-2 country code (e.g. "GB", "UK", "US"). When set, the component shows the matching flag (from flag-icons) and the code (e.g. "UK") automatically.
labelstringOptional text to show instead of the country code (e.g. "Saint Helena" for "SH"). Useful for less familiar codes.

Slots

NameDescription
iconOptional custom flag or graphic. When code is set and no content is slotted, a default flag icon (Vivid/Vonage icon set) is shown.