net.kernelpanicsoft.archie.gui.composables.containers¶
Types¶
ScrollableState¶
@Stable
class ScrollableState
Mutable state holder for a Scrollable composable.
ScrollDirection¶
enum ScrollDirection : Enum<ScrollDirection>
The axis along which a Scrollable container scrolls its content.
Functions¶
Collapsible¶
A container that can be expanded or collapsed by clicking its header.
rememberScrollableState¶
@Composable
fun rememberScrollableState(): ScrollableState
Creates and remembers a ScrollableState for use with Scrollable.
Scrollable¶
@Composable
fun Scrollable(
direction: ScrollDirection = ScrollDirection.VERTICAL,
scrollbarColor: KColor = KColor.DARK_GRAY,
modifier: Modifier = Modifier,
state: ScrollableState = rememberScrollableState(),
content: @Composable
() -> Unit
)
A container that allows its single child to be scrolled when the child's content exceeds the container's bounds.