# formatCNICInput

Source: https://pakdatakit.dev/api/typescript/input/functions/formatcnicinput/

```ts
function formatCNICInput(value): string;
```

Defined in: [input.ts:28](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/input.ts#L28)

Formats a CNIC as the user types: `35202-1234567-1`.

Keeps up to 13 digits (Urdu digits are converted) and inserts the dashes
as the groups fill. Other characters are dropped.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `value` | `string` | Current input value |

## Returns

`string`

Value to show in the input
