AnimatedLabel
fun AnimatedLabel(label: String?, content: @Composable AnimatedContentScope.(targetState: String) -> Unit)
This composable provides an animated label that smoothly transitions between different text values. It uses animations for appearance, disappearance, and content changes.
Parameters
label
The text to display in the label. If null, the label is hidden.
content
The composable function to render the animated content within the label. This function receives the current targetState (the text being displayed) as a parameter.