Skip to content
Harold Martin edited this page Mar 7, 2023 · 1 revision

See MainActivity in the sample app for a full example.

Parameter Description
text The text to be displayed in the text field.
onValueChange Called when the text in the text field changes. The first parameter is string pair of (country code, phone number) and the second parameter is a boolean indicating whether the phone number is valid.
modifier Modifier to be applied to the inner OutlinedTextField.
shape Shape of the text field.
showCountryCode Whether to show the country code in the text field.
showCountryFlag Whether to show the country flag in the text field.
colors Colors to be used for the text field.
fallbackCountry The country to be used as a fallback if the user's country cannot be determined.
showPlaceholder Whether to show the placeholder number in the text field.
includeOnly A set of 2 digit country codes to be included in the list of countries. Set to null to include all supported countries.
clearIcon The icon to be used for the clear button. Set to null to disable the clear button.
Clone this wiki locally