knoxville-utilities-board / nrg-ui

https://knoxville-utilities-board.github.io/nrg-ui/
MIT License
5 stars 1 forks source link

Validator - Phone type #122

Closed TSenter closed 2 months ago

TSenter commented 2 months ago

Since we provide a PhoneField component, it only makes sense that we also provide a validator for phone numbers. To provide the most widespread support, it should support country codes and area codes (requiring/disallowing them, specifying what is valid/invalid, etc.) along with exchange codes (the first 3 digits in a 7-digit phone number).