property

fun StyleParams.property(key: String, value: Property, target: StringBuilder = smProperties)

sets a property for a given target screen size

Parameters

key

of the property

target

StringBuilder representing the screen-size to add the property for

value

of the property

fun StyleParams.property(key: String, sm: Property? = null, md: Property? = null, lg: Property? = null, xl: Property? = null)

sets a responsive property for

Parameters

key

of the property

lg

value of the property for large screens

md

value of the property for middle-sized screens

sm

value of the property for small screens

xl

value of the property for extra-large screens

inline fun <T> StyleParams.property(key: String, base: T, value: T.() -> Property, target: StringBuilder = smProperties)

sets a property derived from the Theme

Parameters

base

scale defined in a Theme to derive the value from

key

of the Property

target

StringBuilder representing the screen-size for which the property should be set

value

function, how to derive the value

fun <T> StyleParams.property(key: String, base: T, sm: T.() -> Property? = null, md: T.() -> Property? = null, lg: T.() -> Property? = null, xl: T.() -> Property? = null)

sets a responsive property derived from the Theme

Parameters

base

scale defined in a Theme to derive the value from

key

of the Property

lg

function, how to derive the value for large screens

md

function, how to derive the value for middle-sized screens

sm

function, how to derive the value for small screens

xl

function, how to derive the value for extra-large screens

inline fun <T : PropertyValues> StyleParams.property(base: T, value: T.() -> Property)

sets an enum-based property for small-screens (default)

Parameters

base

scale defined in a Theme to derive the value from

value

function, how to derive the value

fun <T : PropertyValues> StyleParams.property(base: T, sm: T.() -> Property? = null, md: T.() -> Property? = null, lg: T.() -> Property? = null, xl: T.() -> Property? = null)

sets a responsive enum-based property

Parameters

base

scale defined in a Theme to derive the value from

lg

function, how to derive the value for large screens

md

function, how to derive the value for middle-sized screens

sm

function, how to derive the value for small screens

xl

function, how to derive the value for extra-large screens