Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly support phone numbers #282

Open
3 of 5 tasks
jonas-jonas opened this issue Nov 15, 2024 · 0 comments
Open
3 of 5 tasks

Properly support phone numbers #282

jonas-jonas opened this issue Nov 15, 2024 · 0 comments

Comments

@jonas-jonas
Copy link
Member

Preflight checklist

Ory Network Project

No response

Describe your problem

ory/elements-react should support phone numbers properly.

Describe your ideal solution

Whenever we show a phone number in the UI, it should be properly formatted (using https://www.npmjs.com/package/libphonenumber-js).

Inputs should use a proper phonenumber input, for example https://www.npmjs.com/package/react-phone-number-input.

Workarounds or alternatives

Version

master

Additional Context

Ideally, we set this up as an optional dependency, as these libraries are quite heavy, and since it depends on the API payload, if they are required, they can't be statically tree shaken.

Either through optional npm deps or some kind of plugin system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant