BasicListItem
fun BasicListItem(text: String, modifier: Modifier = Modifier, textColor: Color = Color.Unspecified, supportingText: String? = null, supportingTextColor: Color = Color.Unspecified, enabled: Boolean = true, leadingIcon: ImageVector? = null, leadingIconTint: Color = Color.Unspecified, trailingContent: @Composable () -> Unit? = null, onClick: () -> Unit? = null, onLongClick: () -> Unit? = null)(source)
The foundational list item. It supports a leadingIcon (optional), headline text and supportingText (optional), and a trailingContent composable (optional).
This is a core component that should facilitate most list item use cases. Please carefully consider if modifying this is really necessary before doing so.
Uses the M3 Expressive interactive ListItem overload which provides built-in shape morphing on press/hover and proper disabled styling.
See also
LinkedCoordinatesItem
for example usage