Skip to content

UIScrollIntoViewOptions

Defined in: ui/src/types.ts:476

Options for UIScrollView.scrollIntoView.

optional align?: "start" | "center" | "end" | "nearest"

Defined in: ui/src/types.ts:482

Where the element lands in the viewport. "nearest", the default, scrolls the least distance that brings it inside, and does not move an element that is already fully visible.


optional padding?: number

Defined in: ui/src/types.ts:487

Px kept between the element and the viewport edge. Defaults to 0; must be finite and at or above zero.

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/ui.md.