ToggleableBox
fun ToggleableBox(visibilityState: DelayedVisibilityState, toggleableContent: @Composable AnimatedVisibilityScope.() -> Unit, modifier: Modifier = Modifier, toggleable: Boolean = true, contentAlignment: Alignment = Alignment.TopStart, propagateMinConstraints: Boolean = false, enter: EnterTransition = expandVertically { it }, exit: ExitTransition = shrinkVertically { it }, content: @Composable BoxScope.() -> Unit)
Toggle view
Parameters
visibilityState
A state that holds the current visibility and auto hide delay mode.
toggleableContent
Content to show or hide based on the value of DelayedVisibilityState.isVisible.
modifier
modifier for the Layout created to contain the content.
toggleable
content is toggleable.
contentAlignment
The default alignment inside the Box.
propagateMinConstraints
Whether the incoming min constraints should be passed to content.
enter
EnterTransition(s) used for the appearing animation, fading in while expanding by default.
exit
ExitTransition(s) used for the disappearing animation, fading out while shrinking by default.
content
Content displayed under toggleableContent.