Fade & expand
Toggle to fade and expand the panel in and out.
var visible by remember { mutableStateOf(true) }
Button(onClick = { visible = !visible }) {
Text(if (visible) "Hide" else "Show")
}
AnimatedVisibility(
visible = visible,
enter = fadeIn() + expandVertically(),
exit = fadeOut() + shrinkVertically()
) {
Box(Modifier.fillMaxWidth().size(96.dp).background(Color(0xFF6750A4)))
}