Free
Pro

Phone Number Input

A custom form control that combines a country code selector with a text input, automatically emitting international format phone numbers.

freenew

Basic Usage

Use <ply-phone-input> natively with Angular Forms. It implements ControlValueAccessor.

Bound Value: +441234567890

Installation

Run the following command to add this component to your project:

bash

npx ply-ui-cli add phone-input

API Reference

For AI agents

Copy a prompt with the registry name, CLI install, and import — or add the Ply MCP server.

bash

npx -y ply-ui-mcp

Ply provides standalone components. Import the exact elements you want to use into your component.

typescript (Example)

// Install: npx ply-ui-cli add phone-input
// Paths are relative to aliases.components (default: src/app/components)
import { PhoneInputComponent } from './phone-input/phone-input.component';

@Component({
  selector: 'app-your-component',
  imports: [
    PhoneInputComponent
  ],
  template: `...`
})
export class YourComponent {}

API for phone-input — generated from JSDoc in the library source.

API reference for phone-input
APIMemberTypeDescription
ply-phone-inputA phone number input component with a country selector.