CCPConfig
Configuration options for customizing the appearance and behavior of the CCP component.
Constructors
Properties
Automatically detect the user's country via SIM, network, or locale.
Thickness of the border around the phone number input field.
Shape of the country selection bottom sheet.
TextStyle for the dial code in each country item.
TextStyle for the country name in each country item.
Shape of individual country list items.
How to present the country picker — CountryPickerStyle.BottomSheet (default, full-screen modal) or CountryPickerStyle.Dropdown (compact inline dropdown).
Initial layout of the country list — CountryListStyle.List or CountryListStyle.Grid. The user can toggle this at runtime via the sort button.
Cap input at the maximum digit count for the selected country.
TextStyle for the letter headers in the country list.
Overall size of the phone field — see PhoneFieldSize. PhoneFieldSize.Regular (the default) is unchanged from before this became configurable; PhoneFieldSize.Compact/PhoneFieldSize.ExtraCompact shrink the field's height by scaling its padding, flag, chevron, icon-button, and font sizes down together, so a shorter field never clips or crowds its own content. Only affects the CountryPickerStyle.BottomSheet rendering.
TextStyle for the placeholder text inside the phone input.
Corner radius of the phone input field container.
Shape of the phone input field container.
Border thickness of the search field inside the sheet.
Corner radius of the search field.
TextStyle for the search field placeholder.
Show an × button inside the field to clear the entered number.
Show a divider line next to the letter header.
Display the country flag inside the phone input field.
Show the dial code (e.g. +1) inside each country list item.
Show the flag emoji inside each country list item.
Display a letter header inside the country selection sheet.
Show a floating label above the phone field, notched into its outline — see com.ezzy.ccp.components.PhoneNumberInput's label parameter for the label text. Only affects the CountryPickerStyle.BottomSheet rendering.
Show the thin vertical divider between the country prefix (flag, dial code, chevron) and the number editor inside the phone field. Only affects the CountryPickerStyle.BottomSheet rendering.