Country Code Selector ✅

Deliver nicely styled country code selection in your forms.

Features

  • Allow drop-in country code selection for accompanying phone number fields

  • Keyboard support

    • Begin typing country name

    • Or +country code

  • Show flags

Styling

Future

  • Countries list

    • Favorite countries at top

    • Curated countries list

      • Possibly CMS-driven

  • Auto-detection

    • Automatic GeoIP country code selection option

  • Combine with phone number field

    • Support smart formatting and validation internally

  • Styling

    • Flag style options ( rectangular, square, circular )

  • a11y

  • Mobile variations

    • ? Device-specific

  • Validation

    • 3rd party validation service integration for automatic phone validation

    • Including type-checking for SMS, etc.

Technical Notes

Flag icons

Fonts seem inconsistent and problematic cross-platform.

Using icon lib here- https://github.com/lipis/flag-icons

Last updated