You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this library is lightweight and works great, is not very customisable in terms of aspect, many customers don't like displaying flags within their inputs but this library leaves not alternative. CountrySelector just displays a flag, it would be great if also allows displaying either the country name or country prefix.
Proposed solution
Add option to CountrySelector called display where the allowed options are:
Flag (default)
Name
Prefix
For instance:
Although a perfect solution would be allowing all possible combination of those (flag. + name), (flag + prefix), (flag. + name + prefix), (name + prefix), etc..)
While this library is lightweight and works great, is not very customisable in terms of aspect, many customers don't like displaying flags within their inputs but this library leaves not alternative.
CountrySelector
just displays a flag, it would be great if also allows displaying either the country name or country prefix.Proposed solution
Add option to
CountrySelector
calleddisplay
where the allowed options are:Flag
(default)Name
Prefix
For instance:
Although a perfect solution would be allowing all possible combination of those (flag. + name), (flag + prefix), (flag. + name + prefix), (name + prefix), etc..)
Flag + Name + Prefix:
![Screenshot 2024-03-20 at 13 04 00](https://private-user-images.githubusercontent.com/8544110/314492120-48704a00-8f3f-45c6-aeac-b409b098b784.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU3NDg2NDgsIm5iZiI6MTcyNTc0ODM0OCwicGF0aCI6Ii84NTQ0MTEwLzMxNDQ5MjEyMC00ODcwNGEwMC04ZjNmLTQ1YzYtYWVhYy1iNDA5YjA5OGI3ODQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDkwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA5MDdUMjIzMjI4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9Mzg5MmEyZDliZTQ1MzJjNWY4ZTUzMWUwYzk0MDEyYmM2MjE0YzMxOTA3NGZlMmFlMjc0NmM1MGM0MTQzNzdmNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.PtLbGQ9PDpvOJjj3jZXPi2hDLIqJauJ693NoOJAHgf0)
Would be as easy as adding the new
display
property within the Country selector API, and making FlagImage optional.The text was updated successfully, but these errors were encountered: