Back to problems

Create a UI Component for Passport Validation

AI Coding · Stripe · Medium

Problem Description Create a UI component that checks passport numbers against country-specific formats. The component must provide a country picker alongside a field where the user enters a passport number. Requirements Render a dropdown from which the user can choose a country. Provide an input control for the passport number. Apply the supplied phoneNumberFormat object when checking passport formats for each country. Show an error when the entered value does not match the…

Checking your access…