Skip to content

LayoutRect

Computed layout rectangle for a node (returned by useLayout).

x, y, width, height are the outer bounds (including border). innerX, innerY, innerWidth, innerHeight are the content bounds (after border and padding).

PropertyType
heightnumber
innerHeightnumber
innerWidthnumber
innerXnumber
innerYnumber
widthnumber
xnumber
ynumber