Getting Started
Overview
Installation
Theme
Forms
Basic Inputs
Custom Inputs
Select
Components
Components
78
Micro Charts
Navigation
Libraries
Content Editor
Data View
Form Builder
Image Designer
Kanban Board
PDF Viewer
Video Player
Latest npm version of @ngstarter-ui/componentsWeekly npm downloads of @ngstarter-ui/components
Buy License

Country Select

The Country Select component is a form control for choosing a country from the built-in country list. It shows the flag and country name, supports search by name or ISO code, and writes the selected ISO country code to the form value.

Use it for addresses, user profiles, billing, shipping, legal forms, tax forms, tenant settings, and locale settings where the user must choose a country. Do not use it for phone dialing codes, currencies, or custom lists of regions, cities, offices, or locations.

PropTypeDefault
id
Unique identifier for the country select component.
stringauto-generated
placeholder
The placeholder text for the input.
string''
value
Selected country code, or an array of country codes in multiple mode.
string | string[] | nullnull
required
Whether the input is required.
booleanfalse
disabled
Whether the input is disabled.
booleanfalse
multiple
Whether the user can select multiple countries. The value is an array in multiple mode.
booleanfalse
hideCheckIcon
Whether to hide the check icon for selected options.
booleanfalse
clearable
Whether to show a clear button when a value is selected.
booleanfalse
aria-label
Accessible label for the inner select.
string | nullnull
tabIndex
Tab index for the country select.
number0
aria-describedby
Accessible description id for the inner select.
string | nullnull
showCountryCode
Whether to show the country code in the trigger.
booleanfalse
EventDescription
selectionChangeEvent emitted when the selected value changes.
openedEvent emitted when the select panel is opened.
closedEvent emitted when the select panel is closed.