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

TCKN

11-digit Turkish Republic ID number with algorithmic validation.

← All examples·tckn

Preview

rawValue: -

value: -

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

Details

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

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

PreviousTax number (VKN)NextText

On this page

  • Preview
  • Details
Something wrong? Fix it