image

fun image(value: () -> Property)

This function is used to set a URL for the background-image property.

Example call

background {
image { "https://via.placeholder.com/150/?text=Small" }
}

If you explicitly want to unset an image, use noImage instead!

Parameters

value

function parameter in order to return an arbitrary String