type UIContainer.Layout
Options for layout of UI elements within a container.
type Layout = {
axis?: "horizontal" | "vertical" | "";
distribution?:
| "start"
| "end"
| "center"
| "space-between"
| "space-around"
| "";
gravity?: "start" | "end" | "center" | "stretch" | "baseline" | "";
wrapContent?: boolean;
clip?: boolean;
separator?: Readonly<SeparatorOptions>;
padding?: StyleOverrides.Offsets;
};Instance members
axis
Axis along which content is distributed (defaults to vertical).distribution
Positioning of content along the distribution axis (defaults to start).gravity
Positioning of content perpendicular to the distribution axis (defaults to stretch).wrapContent
True if content should wrap to new line/column if needed (defaults to false).clip
True if content should be clipped within this container.separator
Options for separator between each UI element.padding
Padding around contained UI elements, in pixels or CSS length with unit, or an object with separate offset values.
Related
class UIContainer abstract
A base view class that represents a container element with no specific layout or styling.
