FlexAlignSelf

Class

Common
@ExperimentalFlexBoxApi
value class FlexAlignSelf @PublishedApi internal constructor(private val bits: Int)

Defines the cross-axis alignment for a single flex item, overriding the container's FlexAlignItems.

This controls how an individual item is positioned perpendicular to the main axis within its respective line.

Companion Object

Properties

Common
inline val Auto

Inherits the alignment from the container's FlexBoxConfigScope.alignItems. This is the default value.

Common
inline val Start

The item is aligned toward the cross-start edge of its line.

Common
inline val End

The item is aligned toward the cross-end edge of its line.

Common
inline val Center

The item is centered along the cross axis within its line.

Common
inline val Stretch

The item is stretched to fill the cross axis size of its line.

Common
inline val Baseline

The item is aligned such that its baseline matches the baseline of other baseline-aligned items in the line. Items without a baseline fall back to Start alignment.