Position

@ExperimentalCoroutinesApi
interface Position : StyleParams

This context interface offers two functions to specify the positional appearance of an element.

  • zIndex for arranging elements among the z-axis to bring them to the back or the front of the screen

  • position for the positioning an element within its context

There are two variants for each of those functions; one for applying to all media devices at once and another to specify the functionality for each media device independently.

Functions

Link copied to clipboard
open fun position(value: PositionContext.() -> Unit)

This function sets the position CSS property of an element for all media devices at once.

open fun position(    sm: PositionContext.() -> Unit? = null,     md: PositionContext.() -> Unit? = null,     lg: PositionContext.() -> Unit? = null,     xl: PositionContext.() -> Unit? = null)

This function sets the position CSS property of an element for each media device independently.

Link copied to clipboard
open fun zIndex(value: ZIndicesProperty)

This function sets the z-index CSS property of an element for all media devices at once.

open fun zIndex(    sm: ZIndicesProperty? = null,     md: ZIndicesProperty? = null,     lg: ZIndicesProperty? = null,     xl: ZIndicesProperty? = null)

This function sets the z-index CSS property of an element for each media device independently.

Properties

Link copied to clipboard
abstract val lgProperties: StringBuilder

collects the properties for large screens

Link copied to clipboard
abstract val mdProperties: StringBuilder

collects the properties for middle-sized screens

Link copied to clipboard
abstract val smProperties: StringBuilder

collects the properties for small screens

Link copied to clipboard
abstract val xlProperties: StringBuilder

collects the properties for extra-large screens

Inheritors

Link copied to clipboard