ViraStack
  • About
  • Support
HomeGet StartedExamples
ViraStack

A DX-first toolkit for frontend developers: starters, agent rules, form hooks, and a guide.

Products

  • ViraStack Start
  • ViraStack AI
  • ViraStack Mask
  • ViraStack Password
  • ViraStack Guide

Explore

  • About
  • Brand
  • Support

© 2026 ViraStack.

Open source · MIT

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.

Read the docsvirastack/mask

rawValue: -

value: -

rawValue: -

value: -

More examples

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.