# input

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

## Type Aliases

| Type Alias | Description |
| :------ | :------ |
| [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/) | State of a form field while the user is typing. |

## Functions

| Function | Description |
| :------ | :------ |
| [formatCNICInput](https://pakdatakit.dev/api/typescript/input/functions/formatcnicinput/) | Formats a CNIC as the user types: `35202-1234567-1`. |
| [checkCNICInput](https://pakdatakit.dev/api/typescript/input/functions/checkcnicinput/) | Checks a CNIC while the user is typing. See [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/). |
| [formatPhoneInput](https://pakdatakit.dev/api/typescript/input/functions/formatphoneinput/) | Formats a Pakistani mobile number as the user types: `0300-1234567`, or `+92 300 1234567` when the user starts with the country code. |
| [checkPhoneInput](https://pakdatakit.dev/api/typescript/input/functions/checkphoneinput/) | Checks a Pakistani mobile number while the user is typing. The `03XX` prefix is checked as soon as it is complete. See [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/). |
| [formatIBANInput](https://pakdatakit.dev/api/typescript/input/functions/formatibaninput/) | Formats an IBAN as the user types: uppercase, in groups of four (`PK36 SCBL 0000 0011 2345 6702`), up to 24 characters. |
| [checkIBANInput](https://pakdatakit.dev/api/typescript/input/functions/checkibaninput/) | Checks a Pakistani IBAN while the user is typing: the `PK` prefix, check digits and bank code are checked as they are typed, and the full checksum once all 24 characters are in. See [InputState](https://pakdatakit.dev/api/typescript/input/type-aliases/inputstate/). |
