Primitives / foldkit-primitives/dom

paddingBoxOf

function · packages/primitives/src/dom/pointer-position.ts:69

function paddingBoxOf(layout: {
  readonly rect: Rect
  readonly border: Sides
}): Rect

The padding box of an element whose border box is rect: inside its border, padding included. An absolutely positioned child (a thumb, a stroke) is laid out against it, so a place read here is where that child sits, whatever padding a stylist adds.