size

open fun size(value: SizesProperty)

This convenience function sets the width and height of a component at once for all media devices.

example calls:

size { small } // use a predefined symbol
size { "2em" } // provide a custom value

Parameters

value

custom property or predefined symbol by dev.fritz2.styling.theme.Sizes like dev.fritz2.styling.theme.Sizes.normal or alike.

open fun size(sm: SizesProperty? = null, md: SizesProperty? = null, lg: SizesProperty? = null, xl: SizesProperty? = null)

This convenience function sets the width and height of a component at once for all media devices.

example calls:

size { small } // use a predefined symbol
size { "2em" } // provide a custom value

Parameters

sm

custom property or predefined symbol by dev.fritz2.styling.theme.Sizes for small media devices

md

custom property or predefined symbol by dev.fritz2.styling.theme.Sizes for medium sized media devices

lg

custom property or predefined symbol by dev.fritz2.styling.theme.Sizes for large media devices

xl

custom property or predefined symbol by dev.fritz2.styling.theme.Sizes for extra large media devices