Skip to content
PreviewA small page and its survey. Point for its boxes, or choose one below for its marks and its readout.

CanvasXray

itemsrequired
readonly CanvasXrayItem[]
The elements of the survey, outermost first.
bars
readonly CanvasBox[]
Default: []
The boxes of its text lines.
framerequired
{ box: CanvasBox; page: { readonly w: number; readonly h: number } }
hovered
string | null
The element under the pointer.
selected
string | null
The element chosen: its guides and its readout stand, and the spaces between its children.
area
CanvasBox | null
Default: null
An area of the page, in page pixels: every element it reaches is outlined at once, with its padding and the spaces between neighbours, and the rest of the frame is veiled. The element under the pointer is still named.
rootStyle
RootStyle
A component's typed override prop: Layout and its documented knobs, each the references it takes or another kit knob of its kind; anything else is a type error at the call site (STYLEX.md).

State machine

PreviewThe survey has no selected element.