Stylish List Item
A standalone list item for one row of information with optional interaction, tap/long-press actions, and leading/trailing slots.
This is the plain (non-connected) sibling of the connected list-item family: it renders as an independent rounded surface rather than participating in connected-group geometry. Use it for single rows, or place several in a Column when the connected look is not wanted.
When onClick or onLongClick is provided, the row lifts with StylishTheme.dimensions.interactiveElevation and is exposed with Role.Button semantics; long-press fires a haptic pulse. When enabled is false the row ignores pointer input, is flagged disabled() in semantics, and its content is dimmed to 38 % alpha. Rows with no action at all render as static content.
Parameters
Primary text of the row.
Optional secondary text below the headline.
Modifier applied to the Surface root.
Called when the row is tapped. null makes the row non-interactive.
Called when the row is long-pressed. null disables long-press.
When false, the row ignores pointer input and is visually dimmed.
Background color of the row. Defaults to MaterialTheme.colorScheme.surface.
Default content color of the row. Defaults to MaterialTheme.colorScheme.onSurface.
Corner shape of the row. Defaults to RoundedCornerShape with StylishTheme.dimensions.connectedCornerRadius.
Tonal elevation of the row surface. Defaults to 0.dp.
Maximum lines for headline.
Overflow strategy for headline.
Text style for headline. Defaults to MaterialTheme.typography.titleMedium.
Maximum lines for supportingText.
Overflow strategy for supportingText.
Text style for supportingText. Defaults to MaterialTheme.typography.bodyMedium.
Optional content before the text block (e.g. an icon or a com.segnities007.stylishui.components.atoms.StylishAvatar).
Optional content after the text block (e.g. a chevron or a badge).
When non-null, replaces the entire leading/text/ trailing layout with caller-supplied content, which fills the row with Modifier.weight of 1f.