Skip to Content

Sizing Utilities

PrefixApplies to
w-*Width
h-*Height
min-w-*Minimum width
min-h-*Minimum height
max-w-*Maximum width
max-h-*Maximum height
size-*Width and height together
basis-*Flex basis

Supported Values

ValueMeaning
fullFull available size
screenScreen-sized dimension
autoAutomatic size
pxOne pixel
1/2, 2/3Fractional sizes
64Spacing scale value
[420px], [50%]Arbitrary values

Examples

Lui.Div("w-full h-64") Lui.Div("w-1/2 h-[320px]") Lui.Image(sprite, "w-[400px] h-auto image-contain")

h-auto on images preserves source aspect ratio when width is constrained.

Last updated on