Jenga Wrap
fun JengaWrap(modifier: Modifier = Modifier, space: Dp = JengaTheme.spacing.sm, lineSpace: Dp = space, content: @Composable FlowRowScope.() -> Unit)(source)
A horizontal layout that wraps onto new lines when it runs out of width, with token spacing in both axes, for chips, tags and similar. (Braid Inline with wrap / Chakra Wrap.)
Parameters
modifier
the Modifier for the layout.
space
horizontal gap between items; defaults to spacing.sm.
line Space
vertical gap between wrapped lines; defaults to space.
content
the items, in a FlowRowScope.
Samples
JengaWrap(
content = {
repeat(
times = 5,
) {
JengaBadge(
text = "tag${it + 1}",
)
}
},
)Content copied to clipboard