Skip to content

Flex ​

Controls how a widget behaves inside a flex layout.

luau
PeanutUI.Frame {
    flex = {
        mode = "Grow",
        growRatio = 1,
    }
}

Properties ​

PropertyTypeDescription
mode"Fill" | "Grow" | "None" | "Shrink" | "Custom"Flex mode.
lineAlignment"Automatic" | "Center" | "End" | "Start" | "Stretch"Alignment within the line.
growRationumberGrow ratio.
shrinkRationumberShrink ratio.