CountryPickerDefaults

Default building blocks for CountryPicker.

Use these as-is via the picker defaults, or pass them explicitly into CountryPicker slots when composing a custom layout.

Functions

Link copied to clipboard
fun CallingItem(country: Country, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, locale: String? = null)

Default calling-code row showing the flag, localized name, and calling code.

Link copied to clipboard
fun CountryItem(country: Country, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, locale: String? = null)

Default country row showing the flag, localized name, and selection state.

Link copied to clipboard
fun CurrencyItem(country: Country, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, locale: String? = null)

Default currency row showing the flag, country name, currency name, and code.

Link copied to clipboard
fun EmptyContent(modifier: Modifier = Modifier, label: String = "No countries found", description: String? = null)

Default empty state for CountryPicker when no countries match the current query.

Link copied to clipboard
fun SearchField(query: String, onQueryChange: (String) -> Unit, modifier: Modifier = Modifier)

Default search field for CountryPicker.