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

Examples

  • All
  • Alpha
  • Card
  • Credit card form
  • Currency
  • CVV
  • Date
  • Email
  • Expiry
  • IBAN
  • Numeric
  • Password
  • Phone
  • Tax number (VKN)
  • TCKN
  • Text
  • URL
  • Username
  • ZIP code

Tax number (VKN)

10-digit tax ID number validated with the VKN algorithm.

← All examples·taxNumber

Preview

rawValue: -

value: -

import { useForm } from "react-hook-form"
import { useViraMask } from "@virastack/mask"
 
function Example() {
  const form = useForm<{ taxNumber: string }>()
  const { taxNumber } = useViraMask({
    form,
    schema: { taxNumber: "taxNumber" },
  })
 
  const { rawValue, ...inputProps } = taxNumber
 
  return <input {...inputProps} placeholder="1234567890" />
}

Details

  • Mask: 9999999999
  • Preset: "taxNumber"
  • Built-in validator: 'vkn' Produces a form error when an invalid value is entered.

See useViraMask() for the hook API and custom mask for custom masks.

PreviousPhoneNextTCKN

On this page

  • Preview
  • Details
Something wrong? Fix it