ViraStack Mask
Accessible input masks for forms. Presets cover phone, credit card, date, and currency, and you can define custom masks when you need full control.
rawValue: -
value: -
rawValue: -
value: -
Features
RHF-First
useViraMask()
Formatted display in the input; raw unmasked values in React Hook Form. No sync hacks.
Smart Presets
Card, phone, IBAN, currency…
Ready masks for payments, TR identity (TCKN, VKN), contact, and more. Pick a schema key and go.
Dynamic Cards
Visa · MC · Amex · Troy
BIN detection switches Amex 4-6-5 layout and CVV length automatically; Luhn-ready.
Built-in Validation
Luhn, TCKN, IBAN, expiry
Algorithmic checks wire into React Hook Form errors, or plug in your own validator.
Custom Masks
Pattern + resolveMask
Define your own formats with patterns and resolveMask; no fork of the engine required.
Ultra-Light
<5KB gzip
Zero runtime dependencies beyond React and React Hook Form as peers.
