StylishSpacer

fun StylishSpacer(spacing: Dp = StylishTheme.dimensions.itemSpacing, modifier: Modifier = Modifier)

A vertical spacing element that inserts a fixed-height gap between siblings, backed by the Stylish Rhythm spacing scale. Use the convenience factories (StylishItemSpacer, StylishContentSpacer, StylishSectionSpacer) for the standard vertical steps, or pass a custom spacing for one-off gaps. For horizontal gaps, use StylishHorizontalSpacer or StylishInlineSpacer.

Parameters

spacing

The height of the gap. Defaults to StylishTheme.dimensions.itemSpacing.

modifier

Modifier applied to the Spacer.

See also