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.

Events

NameEvent TypeDescription
blurFocusEventFires when the element loses focus.
clickMouseEventFires when a pointing device button (such as a mouse's primary mouse button) is both pressed and released while the pointer is located inside the element.
focusFocusEventFires when the element receives focus.
inputEventFires when the value of an element has been changed.
keydownKeyboardEventFires when a key is pressed.
keyupKeyboardEventFires when a key is released.

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.