PhoneNumberInputStyle

data class PhoneNumberInputStyle(val labelMode: InputLabelMode = InputLabelMode.Floating, val prefixContentMode: PhonePrefixContentMode = PhonePrefixContentMode.FlagAndDialCode, val showDropdownIcon: Boolean = true, val showPrefixDivider: Boolean = true, val size: PhoneFieldSize = PhoneFieldSize.Regular, val showGhostDigits: Boolean = true, val showProgress: Boolean = true, val showNumberType: Boolean = true, val showValidIndicator: Boolean = true)(source)

Options specific to com.ezzy.ccp.countrypicker.ui.PhoneNumberField — one typed value instead of a row of unrelated booleans on the composable.

Colors, shapes, flags and motion come from the CountryPickerStyle like every other component; these are the choices only a phone field has.

Constructors

Link copied to clipboard
constructor(labelMode: InputLabelMode = InputLabelMode.Floating, prefixContentMode: PhonePrefixContentMode = PhonePrefixContentMode.FlagAndDialCode, showDropdownIcon: Boolean = true, showPrefixDivider: Boolean = true, size: PhoneFieldSize = PhoneFieldSize.Regular, showGhostDigits: Boolean = true, showProgress: Boolean = true, showNumberType: Boolean = true, showValidIndicator: Boolean = true)

Properties

Link copied to clipboard

labelMode as a plain boolean.

Link copied to clipboard

A floating label, or none. Hiding it never removes the label from accessibility.

Link copied to clipboard

What the country prefix shows — see PhonePrefixContentMode.

Link copied to clipboard

The small chevron in the prefix.

Link copied to clipboard

Show the country's example number as faint digits that the user's typing fills in, so the expected length and grouping are visible before a digit is typed.

Link copied to clipboard

A badge naming the kind of number — Mobile, Landline — once it is valid. While the field is being edited it collapses to a check, leaving the number its room.

Link copied to clipboard

The hairline between the prefix and the number.

Link copied to clipboard

A thin bar along the bottom of the field that fills as digits are entered and turns to the success color once the number is valid.

Link copied to clipboard

A check mark once the number is valid.

Link copied to clipboard

Overall size — see PhoneFieldSize.