Form Masked Inputs
Checkout form with a card and expiry validation.
About this block
What it's for
- Checkout form with a card and expiry validation.
- International bank transfers with IBAN Mod-97 validation.
- International customer registration with phone and country code.
Includes
- Currency masking
- Country aware phone
- Iban mod97 validation
- Card brand detection
- Luhn validation
- Fixed clock expiry
- Time masking
- Canonical export
Works with
- Radix UI primitives (the registry variant it ships in)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add form-masked-inputsInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/form-masked-inputsUsed in
A standalone component: drop it into any screen.
- Type
- Block
- Variants
- Radix UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- npm packages
lucide-react- Registry dependencies
lib-primitives- Files
16 files
- components/agentic-ui/form-masked-inputs/form-masked-inputs.tsx
- components/agentic-ui/form-masked-inputs/types.ts
- components/agentic-ui/form-masked-inputs/components/payment-card-field-set.tsx
- components/agentic-ui/form-masked-inputs/utils/card-utils.ts
- components/agentic-ui/form-masked-inputs/utils/mask-utils.ts
- components/agentic-ui/form-masked-inputs/components/card-cvc-input.tsx
- components/agentic-ui/form-masked-inputs/components/card-expiry-input.tsx
- components/agentic-ui/form-masked-inputs/utils/datetime-utils.ts
- components/agentic-ui/form-masked-inputs/components/card-number-input.tsx
- components/agentic-ui/form-masked-inputs/components/time-input.tsx
- components/agentic-ui/form-masked-inputs/components/iban-input.tsx
- components/agentic-ui/form-masked-inputs/utils/iban-utils.ts
- components/agentic-ui/form-masked-inputs/components/phone-input.tsx
- components/agentic-ui/form-masked-inputs/utils/phone-utils.ts
- components/agentic-ui/form-masked-inputs/components/currency-input.tsx
- components/agentic-ui/form-masked-inputs/utils/currency-utils.ts
Related components
Form Async Combobox
Multiple assignment of reviewers with avatars, roles and teams in issue management.
Details and live previewForm Date Range Picker
Filter conversion and traffic metrics in analytics panels.
Details and live previewForm Field Array
Invoice lines with quantity, unit price and tax.
Details and live previewForm File Upload
Attach a CV and degree to an HR job application.
Details and live preview