# ViraStack Mask > Zero-dependency input masks for React Hook Form, with Turkish validators, type safety and server support. npm: `@virastack/mask` (2.x). Zero runtime dependencies, ~8 KB. Install: `npm install @virastack/mask`. Peers: `react` ≥ 18.2, `react-hook-form` ≥ 7.55. The form stores the **raw** value (`5551234567`); the input shows the mask (`(555) 123 45 67`). Spread the returned object onto the input as is. For inline API + examples, prefer [llms-full.txt](https://virastack.com/mask/llms-full.txt). ## Docs - [Introduction](https://virastack.com/mask/docs): Install, peers, comparison with imask and Maskito - [Upgrade from v1](https://virastack.com/mask/docs/upgrade): Signature, presets, options and helpers that changed - [useViraMask()](https://virastack.com/mask/docs/use-vira-mask): Schema, linked fields (`from`), return props, React Hook Form compatibility - [Custom mask](https://virastack.com/mask/docs/custom-mask): Pattern syntax, tokens, optional and fixed parts, dynamic masks, number/currency/date, `definePreset` - [Validation](https://virastack.com/mask/docs/validation): Error keys, custom validators, `maskResolver` for Zod/Valibot - [Bank detection](https://virastack.com/mask/docs/banks): `getTurkishBank(iban)`, `turkishBanks` (70 TCMB participants), live demo - [Test data](https://virastack.com/mask/docs/testing): `@virastack/mask/testing` (2.3+), `generateTCKN`, `generateIBAN`, seeds for repeatable values - [UI libraries](https://virastack.com/mask/docs/ui-libraries): shadcn/ui, Ant Design, Chakra - [Server validation](https://virastack.com/mask/docs/server): `@virastack/mask/server`, `parseMasked`, Standard Schema - [Helpers](https://virastack.com/mask/docs/helpers): `createMask`, validators, `toMinorUnits` - [Types](https://virastack.com/mask/docs/types): `PresetName`, `MaskOptions`, schema and field types - [Examples](https://virastack.com/mask/examples): Live preset index ## Notable examples - [Credit card form](https://virastack.com/mask/examples/credit-card): Card + expiry + CVV linked with `from` - [Phone](https://virastack.com/mask/examples/phone): E.164; `{ preset: "phone", country: "TR" }` for `(555) 123 45 67` (type +90, 0 or 555), raw 10 digits - [IBAN](https://virastack.com/mask/examples/iban): every country, mod-97 and country length; `{ preset: "iban", country: "TR" }` writes `TR` for you - [TCKN](https://virastack.com/mask/examples/tckn): Turkish national ID - [Plate](https://virastack.com/mask/examples/plate): Turkish registration plate (2.3+), rules from the official registration regulation - [Full name](https://virastack.com/mask/examples/full-name): Letters of any language and single spaces; `autoComplete: "cc-name"` for the name on a card - [Currency](https://virastack.com/mask/examples/currency): Intl formatting, `{ preset: "currency", country: "TR" }` for `₺1.234,56`, follows a currency select - [Date](https://virastack.com/mask/examples/date): ISO value, min/max, minAge, start/end - [Custom mask](https://virastack.com/mask/examples/custom): `definePreset` order number example ## Product - [Mask overview](https://virastack.com/mask): Marketing page - [npm `@virastack/mask`](https://www.npmjs.com/package/@virastack/mask): Package registry - [GitHub](https://github.com/virastack/form/tree/main/packages/mask): Source (form monorepo) ## Related - [ViraStack llms.txt](https://virastack.com/llms.txt): Ecosystem map - [Password docs](https://virastack.com/password/docs): Companion headless form utility - [Start docs](https://virastack.com/start/docs): Scaffold CLI that can install Mask