FloatingItemHeadingAndText

fun FloatingItemHeadingAndText(heading: String, text: AnnotatedString, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})
fun FloatingItemHeadingAndText(heading: String, text: String, modifier: Modifier = Modifier, showChevron: Boolean = false, image: @Composable () -> Unit = {}, trailingContent: @Composable () -> Unit = {})

Deprecated

Use SegmentedItemHeadingAndText instead.

Replace with

import org.multipaz.compose.items.SegmentedItemHeadingAndText
SegmentedItemHeadingAndText(heading = heading, text = text, modifier = modifier, showChevron = showChevron, image = image, trailingContent = trailingContent)

An item showing a field heading with selectable text below it.

Parameters

heading

field label shown at the top.

text

value shown below the heading.

modifier
showChevron

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

image

optional image, shown to the left of the text.

trailingContent

optional trailing content.