Column
Constructs a KColumn without requiring a com.facebook.litho.ComponentContext or com.facebook.litho.ResourcesScope.
Column(style = Style.padding(8.dp)) {
child(Text(text = "Hello"))
}Parameters
Defines how the lines of children are distributed along the cross-axis when there is extra space (only applies when wrap is enabled).
Defines the default alignment for children along the cross-axis.
Defines how children are distributed along the main axis (vertical for Column).
Controls whether children wrap to multiple lines when they exceed the container's size.
If true, reverses the order of children along the main axis (bottom-to-top instead of top-to-bottom).
Specifies the spacing between children. Applied uniformly between all adjacent children in the container. Resolved to pixels at layout time.
Spacing between children along the main axis (vertical for Column). Takes precedence over gap if both are specified.
The Style to apply to this Column for additional layout and visual properties.
Overrides the component's Component.getSimpleName (defaults to "Column"). Preserves the debug/finder identity of legacy Column.create(c, name) call sites migrated onto this DSL; leave null for the standard "Column" name.
A lambda with FlexboxScope receiver for adding children to this Column using FlexboxScope.child.