horizontal

fun horizontal(value: ScaledValueProperty)

This function is used to set the horizontal padding or margin according to the passed SpacesContext.leftKey and SpacesContext.rightKey value like `padding-left` and ``padding-right`.

example call:

paddings {
horizontal { small }
}

Parameters

value

extension function parameter to bring the predefined space values of the theme into the scope of the functional expression