textAlign

open fun textAlign(value: TextAligns.() -> TextAlignProperty)

This function sets the text-align property

Example call:

textAlign { center }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values from TextAligns

open fun textAlign(sm: TextAligns.() -> TextAlignProperty? = null, md: TextAligns.() -> TextAlignProperty? = null, lg: TextAligns.() -> TextAlignProperty? = null, xl: TextAligns.() -> TextAlignProperty? = null)

This function sets the text-align property for each media device independently.

Example call:

textAlign(
sm = { center },
lg = { left }
)

Parameters

lg

extension function parameter for large media devices, recommended to use predefined values via TextAligns

md

extension function parameter for medium sized media devices, recommended to use predefined values via TextAligns

sm

extension function parameter for small media devices, recommended to use predefined values from TextAligns

xl

extension function parameter for extra large media devices, recommended to use predefined values via TextAligns