Sizes

class Sizes(normal: Property, small: Property, smaller: Property, tiny: Property, large: Property, larger: Property, huge: Property, giant: Property, full: Property, wide: ScaledValue) : ScaledValue

Defines a value that has different expressions for different sizes.

There is a special sub-range for "bigger" sizes called `wide`. "Bigger" really means sizes that reach dimensions up to the whole screen and have to scale much different (much wider steps obviously) than the basic ones.

We believe that in most of the cases one would like to define rather small sizes, ranging between a fraction of an `rem` and at most `2rem`. This is why those are intentionally the basic properties of this type and the more wider scaled ones need the `wide` "prefix"!

Constructors

Sizes
Link copied to clipboard
js
fun Sizes(normal: Property, small: Property = normal, smaller: Property = small, tiny: Property = smaller, large: Property = normal, larger: Property = large, huge: Property = larger, giant: Property = huge, full: Property = giant, wide: ScaledValue)

Functions

equals
Link copied to clipboard
js
open operator fun equals(other: Any?): Boolean
fitContent
Link copied to clipboard
js
fun fitContent(value: Property): Property
hashCode
Link copied to clipboard
js
open fun hashCode(): Int
toString
Link copied to clipboard
js
open fun toString(): String

Properties

auto
Link copied to clipboard
js
val auto: Property
available
Link copied to clipboard
js
val available: Property
borderBox
Link copied to clipboard
js
val borderBox: Property
contentBox
Link copied to clipboard
js
val contentBox: Property
full
Link copied to clipboard
js
val full: Property
giant
Link copied to clipboard
js
val giant: Property
huge
Link copied to clipboard
js
val huge: Property
inherit
Link copied to clipboard
js
val inherit: Property
initial
Link copied to clipboard
js
val initial: Property
large
Link copied to clipboard
js
val large: Property
larger
Link copied to clipboard
js
val larger: Property
maxContent
Link copied to clipboard
js
val maxContent: Property
minContent
Link copied to clipboard
js
val minContent: Property
none
Link copied to clipboard
js
open val none: Property
normal
Link copied to clipboard
js
val normal: Property
small
Link copied to clipboard
js
val small: Property
smaller
Link copied to clipboard
js
val smaller: Property
tiny
Link copied to clipboard
js
val tiny: Property
unset
Link copied to clipboard
js
val unset: Property
wide
Link copied to clipboard
js
val wide: ScaledValue