Skip to content

HStack

A HStack is a frame that horizontally sorts content.

Summary

Properties

Property Type Description
Padding UDim? The padding between objects.
HorizontalAlignment Enum.HorizontalAlignment? The content X axis alignment.
VerticalAlignment Enum.VerticalAlignment? The content Y axis alignment.

View all inherited from BaseComponent

View all inherited from Frame

Methods

View all inherited from Frame

Events

View all inherited from Frame

Types

type StackProperties = Frame & {
    Padding: UDim?,
    HorizontalAlignment: Enum.HorizontalAlignment?,
    VerticalAlignment: Enum.VerticalAlignment?,
}

type Stack = BaseComponent & Components & StackProperties

Function Signature

function(self, properties: StackProperties): Stack

Example

local hStack = row:Right():HStack()

print(hStack:IsA("Frame")) --> true
print(hStack.ClassName) --> "Frame"
print(hStack.Type) --> "HStack"