AppSelection

fun AppSelection(modifier: Modifier = Modifier, expanded: Boolean, selectedOption: AppSelectionOption, options: List<AppSelectionOption>, onExpandedChange: (Boolean) -> Unit, onOptionSelected: (AppSelectionOption) -> Unit)

A customizable selection component using an exposed dropdown menu.

Parameters

modifier

The Modifier to be applied to the selection component.

expanded

Whether the dropdown menu is currently expanded.

selectedOption

The currently selected AppSelectionOption.

options

The list of AppSelectionOption to display.

onExpandedChange

Callback when the expanded state changes.

onOptionSelected

Callback when an option is selected.