TextFieldScope
Functions
Link copied to clipboard
fun <T> AnimatedContent(targetState: T, modifier: Modifier = Modifier, transitionSpec: AnimatedContentTransitionScope<T>.() -> ContentTransform = { fadeIn() togetherWith fadeOut() }, contentAlignment: Alignment = Alignment.Center, label: String = "TextFieldScopeAnimatedContent", contentKey: (targetState: T) -> Any? = { it }, content: @Composable TextFieldScope.(targetState: T) -> Unit)
Animated wrapper for the TextField trailing slot. Renders one of the TextFieldScope elements (Icon / Text) per targetState with a smooth transition.