top

fun top(value: ScaledValueProperty)

This function is used to define the positional behaviour of an element by the top property.

example call:

top { small } // use predefined properties of the theme
top { "2em" } // provide custom value

Parameters

value

positional value; recommended to use the predefined properties of the theme