Skip to content

List ​

Arranges children in a line, optionally wrapping.

luau
PeanutUI.Frame {
    list = {
        gap = PeanutUI.Unit(8),
        horizontal = true,
    }
}

Properties ​

PropertyTypeDescription
gapUnitSpace between children.
horizontalbooleanLay out horizontally.
sortByNamebooleanSort children by name.
wrapsbooleanWrap to the next line.
absoluteContentSizeVector2Absolute content size.
horizontalAlign"Left" | "Center" | "Right"Horizontal alignment.
verticalAlign"Top" | "Center" | "Bottom"Vertical alignment.
horizontalFlex"None" | "Fill" | "SpaceAround" | "SpaceBetween" | "SpaceEvenly"Horizontal flex distribution.
lineAlignment"Automatic" | "Center" | "End" | "Start" | "Stretch"Alignment within a line.