Countries Dropdown
A compact, searchable dropdown for country selection, anchored below the country selector button. Intended as an alternative to CountriesBottomSheet for tablets, landscape layouts, or forms where a full-screen modal feels too heavy.
Controlled by the caller via expanded / onDismiss, matching the pattern of Material3's DropdownMenu.
Note: the country list uses Column + verticalScroll rather than LazyColumn because DropdownMenu measures its children's intrinsic sizes to size the popup, and SubcomposeLayout-based components (LazyColumn) do not support intrinsic measurement. Search filtering keeps the rendered count small in practice.
Parameters
Whether the dropdown is currently open.
Called when the user taps outside or selects a country.
Called with the chosen Country.
Whitelist of ISO codes to display. Empty = all countries.
ISO codes to hide from the list.
ISO codes shown in a "Suggested" section at the top.
Color configuration.
Behavior and UI configuration (header style, flag visibility, etc.).