CommandSuggestionItem

fun CommandSuggestionItem(command: Command, modifier: Modifier = Modifier, onCommandSelected: (Command) -> Unit = {}, leadingContent: @Composable RowScope.(Command) -> Unit = { DefaultCommandSuggestionItemLeadingContent() }, centerContent: @Composable RowScope.(Command) -> Unit = { DefaultCommandSuggestionItemCenterContent(command = it) })

Represents the command suggestion item in the command suggestion list popup.

Parameters

command

The command to display.

modifier

Modifier for styling.

onCommandSelected

Handler when the user taps on an item.

leadingContent

Customizable composable function that represents the leading content of a command item.

centerContent

Customizable composable function that represents the center content of a command item.