Skip to content

Stack and inline

Vertical and horizontal layouts with token spacing, plus a one-off spacer.

Stack and inline Stack and inline

JengaStack(
    space = JengaTheme.spacing.sm,
    content = {
        JengaText(
            text = "Stacked first",
        )
        JengaText(
            text = "Stacked second",
        )
        JengaSpacer(
            size = JengaTheme.spacing.lg,
        )
        JengaInline(
            space = JengaTheme.spacing.sm,
            content = {
                JengaBadge(
                    text = "Inline",
                )
                JengaBadge(
                    text = "Row",
                )
            },
        )
    },
)