CommonListItem

fun CommonListItem(title: String, isSelected: Boolean, onSelect: () -> Unit? = null, isEnabled: Boolean = true, modifier: Modifier = Modifier)

Common list item with title display

Displays a selectable list item with a title text. Provides consistent styling and behavior across the application for simple text-based list items.

Parameters

title

Text to display in the list item

isSelected

Whether the item is currently selected

onSelect

Callback invoked when the item is selected (null for non-selectable)

isEnabled

Whether the item is enabled for interaction

modifier

Modifier to apply to the item


fun CommonListItem(title: String, isSelected: Boolean, onSelect: () -> Unit? = null, modifier: Modifier = Modifier, isEnabled: Boolean = true, leadingContent: @Composable () -> Unit? = null)

Common list item with title and optional leading content

Displays a selectable list item with title text and optional leading content. The leading content appears before the title text, useful for icons or other decorative elements.

Parameters

title

Text to display in the list item

isSelected

Whether the item is currently selected

onSelect

Callback invoked when the item is selected (null for non-selectable)

modifier

Modifier to apply to the item

isEnabled

Whether the item is enabled for interaction

leadingContent

Optional composable content to display before the title


fun CommonListItem(isSelected: Boolean, onSelect: () -> Unit? = null, modifier: Modifier = Modifier, isEnabled: Boolean = true, content: @Composable () -> Unit)

Common list item with custom content

The base list item component that other variants use internally. Provides consistent styling and selection behavior with fully customizable content.

Parameters

isSelected

Whether the item is currently selected

onSelect

Callback invoked when the item is selected (null for non-selectable)

modifier

Modifier to apply to the item

isEnabled

Whether the item is enabled for interaction

content

Composable content to display within the list item