elements icon indicating copy to clipboard operation
elements copied to clipboard

Properly support phone numbers

Open jonas-jonas opened this issue 1 year ago • 1 comments

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.

jonas-jonas avatar Nov 15 '24 11:11 jonas-jonas

This would be hugely beneficial to us to.

djcunniffe avatar Jan 08 '25 07:01 djcunniffe