Primitives / foldkit-primitives/state
Viewport
const · packages/primitives/src/state/virtual.ts:374
const Viewport: Mount.MountDefinitionNoArgs<
'Viewport',
{ readonly _tag: 'ViewportScrolled'; readonly top: number }
>The scroll container's position, reported on its own scrolls starting with the current one. Attach to the scrolling element — viewport scrolls arrive through the window-level scroll entry instead.
In the guides
- foldkit-primitives/statePrimitives / State
- Virtual: a windowed listPrimitives / State