CountrySelector

Domain

Country dropdown built from countries-list. Shows flag + full name + ISO2 code. Supports search by name or code, error/hint states.

Default

Preview

Selected: TR

Code
<CountrySelector value={country} onChange={setCountry} />

With hint & error

Preview

Used for shipping address.

Code
<CountrySelector value="" onChange={setCountry} hint="Used for shipping address." />
<CountrySelector value="" onChange={setCountry} error="Please select a country." required />

No label

Preview
Code
<CountrySelector value="US" onChange={setCountry} label="" />
Sourcemodules/domains/common/location/CountrySelector.tsx