Skip to content

API reference / Common / ScrollAlignment

Type Alias: ScrollAlignment ​

ts
type ScrollAlignment = "top" | "center" | "bottom" | "nearest";

Where a target lands in the viewport when the camera moves to it — a followed link or outline item, a chosen comment, a search match.

Crosses the host boundary by name ("top", "center", "bottom", "nearest"), the vocabulary the host's options use for it.