Phone input

A phone field with country code.

With label

API reference

Inputs

PropTypeDefaultDescription
namestring''Name attribute applied to the number input for form submission.
idstring''Id attribute applied to the number input.
placeholderstring'Phone number'Placeholder text for the number input.
countryLabelstringโ€”Accessible label override for the country selector.
numberLabelstringโ€”Accessible label override for the number input.

Two-way models

Bind with [(name)], or one-way as an input.

PropTypeDefaultDescription
valuestring''Entered phone number. Two-way bindable with `[(value)]`.
countrystring'US'Selected country code. Two-way bindable with `[(country)]`.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.