Skip to content

TextSizeConstraint ​

Clamps a text widget's font size between a minimum and maximum.

luau
PeanutUI.TextLabel {
    textSizeConstraint = {
        min = 12,
        max = 32,
    }
}

Properties ​

PropertyTypeDescription
minnumberMinimum text size.
maxnumberMaximum text size.