Space

@ExperimentalCoroutinesApi
interface Space : StyleParams

This context interface offers functions to style the space related CSS properties of a component.

It offers functions to define padding and margin properties.

There are overrides for all functions that enable one to define the styling for the different media devices independently.

Functions

Link copied to clipboard
open fun margin(value: ScaledValueProperty)

This function sets the margin property.

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

This function sets the margin property for each media device independently.

Link copied to clipboard
open fun margins(value: SpacesContext.() -> Unit)

This function opens the context for defining the margin related properties.

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

This function opens the context for defining the margin related properties for each media device independently.

Link copied to clipboard
open fun padding(value: ScaledValueProperty)

This function sets the padding property

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

This function sets the padding property for each media device independently.

Link copied to clipboard
open fun paddings(value: SpacesContext.() -> Unit)

This function opens the context for defining the padding related properties.

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

This function opens the context for defining the padding related properties 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