Skip to main content

@dialstack/sdk / react / UseDialInput

Interface: UseDialInput

Defined in: sdk/src/react/softphone/hooks/useDialInput.ts:4

Properties

onPasteText

onPasteText: (raw) => void;

Defined in: sdk/src/react/softphone/hooks/useDialInput.ts:15

Handle a paste: a pasted value is complete, so fully normalize it — a formatted (581) 319-5082 becomes +15813195082, so the user sees exactly what will be dialed. Pass the raw clipboard text.

Parameters

raw

string

Returns

void


onType

onType: (raw) => void;

Defined in: sdk/src/react/softphone/hooks/useDialInput.ts:9

Handle a per-keystroke value change: strip display separators only (typing stays natural; no mid-field E.164 rewrite). Pass the raw field value.

Parameters

raw

string

Returns

void