CountrySelector
DomainCountry dropdown built from countries-list. Shows flag + full name + ISO2 code. Supports search by name or code, error/hint states.
Selected: TR
<CountrySelector value={country} onChange={setCountry} />Used for shipping address.
Please select a country.
<CountrySelector value="" onChange={setCountry} hint="Used for shipping address." />
<CountrySelector value="" onChange={setCountry} error="Please select a country." required /><CountrySelector value="US" onChange={setCountry} label="" />