top

fun top(value: ScaledValueProperty)

This function is used to set the top padding or margin property according to the passed SpacesContext.topKey value like `margin-top`.

example call:

margins {
top { normal }
}

Parameters

value

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