JengaStack

fun JengaStack(modifier: Modifier = Modifier, space: Dp = JengaTheme.spacing.md, horizontalAlignment: Alignment.Horizontal = Alignment.Start, content: @Composable ColumnScope.() -> Unit)(source)

A vertical stack with token-based spacing between children; use instead of a hand-spaced Column. (Braid Stack / Polaris BlockStack / Chakra VStack.)

Parameters

modifier

the Modifier for the stack.

space

vertical gap between children; defaults to spacing.md.

horizontalAlignment

how children align horizontally.

content

the children, in a ColumnScope.

Samples

JengaStack(
    content = {
        JengaText(
            text = "One",
        )
        JengaText(
            text = "Two",
        )
        JengaText(
            text = "Three",
        )
    },
)