Space
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
margin
Link copied to clipboard
open fun margin(sm: ScaledValueProperty? = null, md: ScaledValueProperty? = null, lg: ScaledValueProperty? = null, xl: ScaledValueProperty? = null)
Content copied to clipboard
This function sets the margin property for each media device independently.
margins
Link copied to clipboard
open fun margins(sm: SpacesContext.() -> Unit? = null, md: SpacesContext.() -> Unit? = null, lg: SpacesContext.() -> Unit? = null, xl: SpacesContext.() -> Unit? = null)
Content copied to clipboard
padding
Link copied to clipboard
open fun padding(sm: ScaledValueProperty? = null, md: ScaledValueProperty? = null, lg: ScaledValueProperty? = null, xl: ScaledValueProperty? = null)
Content copied to clipboard
This function sets the padding property for each media device independently.
paddings
Link copied to clipboard
open fun paddings(sm: SpacesContext.() -> Unit? = null, md: SpacesContext.() -> Unit? = null, lg: SpacesContext.() -> Unit? = null, xl: SpacesContext.() -> Unit? = null)
Content copied to clipboard
Properties
lgProperties
Link copied to clipboard
collects the properties for large screens
mdProperties
Link copied to clipboard
collects the properties for middle-sized screens
smProperties
Link copied to clipboard
collects the properties for small screens
xlProperties
Link copied to clipboard
collects the properties for extra-large screens
Inheritors
BasicParams
Link copied to clipboard