# formatPhoneInput

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

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

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

Formats a Pakistani mobile number as the user types: `0300-1234567`, or
`+92 300 1234567` when the user starts with the country code.

## Parameters

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

## Returns

`string`

Value to show in the input
