---
title: "UIListLayout"
description: "Automatically arranges sibling GUI objects in a horizontal or vertical list."
canonical: "https://docs.glorpia.com/instances/uilistlayout"
markdown: "https://docs.glorpia.com/instances/uilistlayout.md"
---
# UIListLayout

Automatically arranges sibling GUI objects in a horizontal or vertical list.

**Category:** Instances

## Properties

| Name | Type | Description |
| --- | --- | --- |
| `FillDirection` | Enum.FillDirection | Direction in which children are arranged. Default: Enum.FillDirection.Vertical. |
| `HorizontalAlignment` | Enum.HorizontalAlignment | Horizontal alignment of the arranged content. Default: Enum.HorizontalAlignment.Left. |
| `VerticalAlignment` | Enum.VerticalAlignment | Vertical alignment of the arranged content. Default: Enum.VerticalAlignment.Top. |
| `Padding` | UDim | Spacing inserted between adjacent arranged children. Default: UDim.new(0, 0). |

> **Note:** UIListLayout affects direct visible Frame, ScrollingFrame, TextLabel and TextButton children of its parent. The layout controls their rendered positions while it is active.

> **Note:** If more than one layout component is directly parented to the same GUI object, the first UIListLayout or UIGridLayout in that parent's child hierarchy is used.

## Ordering

Children are arranged in their hierarchy order. `FillDirection` selects the main axis. The alignment properties position the arranged group within the parent GUI object's bounds.

## Example

```luau
local frame = Instance.new("Frame")
frame.Size = UDim2.new(0, 320, 0, 240)
frame.Parent = game:GetService("StarterGui").ScreenGui

local layout = Instance.new("UIListLayout")
layout.FillDirection = Enum.FillDirection.Vertical
layout.HorizontalAlignment = Enum.HorizontalAlignment.Center
layout.Padding = UDim.new(0, 8)
layout.Parent = frame
```

## Related

- [UIGridLayout](https://docs.glorpia.com/instances/uigridlayout.md) — Arranges children into a grid of cells.
- [Frame](https://docs.glorpia.com/instances/frame.md) — Rectangular GUI container that can own a layout.
- [ScrollingFrame](https://docs.glorpia.com/instances/scrollingframe.md) — Scrollable GUI container that can own a layout.
- [Enums](https://docs.glorpia.com/scripting/enums.md) — FillDirection and alignment enum values.
