lineHeight

open fun lineHeight(value: ScaledValueProperty)

This function sets the line-height property

Example call:

lineHeight { small }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.lineHeights that offer the properties of ScaledValue

open fun lineHeight(sm: ScaledValueProperty? = null, md: ScaledValueProperty? = null, lg: ScaledValueProperty? = null, xl: ScaledValueProperty? = null)

This function sets the line-height property for each media device independently.

Example call:

lineHeight(
sm = { small },
lg = { normal }
)

Parameters

lg

extension function parameter for large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.lineHeights that offer the properties of ScaledValue

md

extension function parameter for medium sized media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.lineHeights that offer the properties of ScaledValue

sm

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.lineHeights that offer the properties of ScaledValue

xl

extension function parameter for extra large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.lineHeights that offer the properties of ScaledValue