Skip to Content

TCKN

The tckn preset formats Turkish Citizenship Identity Numbers (TCKN). It validates the 11-digit number using the official algorithm.

Raw Value
Display Value
import { useViraMask } from '@virastack/input-mask'; import { useForm } from 'react-hook-form'; const form = useForm({ defaultValues: { tckn: '' } }); const { tckn } = useViraMask({ form, schema: { tckn: 'tckn' }, }); <input {...tckn} />

Disable Validation

If you want to disable the default TCKN algorithm validation (e.g., for testing purposes or to handle validation on the server), you can set validate: false.

Raw Value
Display Value
import { useViraMask } from '@virastack/input-mask'; import { useForm } from 'react-hook-form'; const form = useForm(); const { tckn } = useViraMask({ form, schema: { tckn: { preset: 'tckn', validate: false, // Disables TCKN validation }, }, }); <input {...tckn} />

© 2026 ViraStack. MIT License.