CountrySelectorField

fun CountrySelectorField(country: Country?, onClick: () -> Unit, modifier: Modifier = Modifier, isOpen: Boolean = false, state: CountrySelectorState = CountrySelectorState.Default, variant: CountrySelectorVariant = CountrySelectorVariant.Elevated, label: UiText? = null, placeholder: UiText? = null, labelMode: InputLabelMode = InputLabelMode.Floating, supportingContent: CountrySupportingContent = CountrySupportingContent.None, required: Boolean = false, style: CountryPickerStyle = CountryPickerTheme.style, flagContent: @Composable (Country) -> Unit? = null, trailingContent: @Composable () -> Unit? = null, selectorContent: @Composable RowScope.(Country?) -> Unit? = null, accessibilityDescription: String? = null)(source)

The selector field alone, without the picker — for a host that already manages when its picker is shown.

Parameters

isOpen

Draws the field as active (accent border, focus ring, chevron turned) while its picker is open.

accessibilityDescription

Overrides the spoken description. The default names the label and the selected country; a field showing a summary over several countries must pass its own.