FloatingItemText

fun FloatingItemText(text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, secondary: String? = null, secondaryColor: Color = MaterialTheme.colorScheme.secondary, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun FloatingItemText(text: String, modifier: Modifier = Modifier, showChevron: Boolean = false, secondary: String? = null, secondaryColor: Color = MaterialTheme.colorScheme.secondary, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})

An item showing a text, with smaller secondary text below.

Parameters

text

text to be shown.

modifier
showChevron

whether to show a right chevron icon on the right side.

secondary

optional text to show below the main text, in smaller font and secondaryColor.

secondaryColor

the color to use for secondaryColor, defaults to secondary color.

image

optional image, shown to the left of the text.

trailingContent

optional trailing content.