← ui-lab

Pan View

A small window onto a larger surface that you scroll by dragging it — the grab-and-drag gesture used for maps and large images. The viewport is also focusable, so arrow keys pan it. Drag the surface below to move it around.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/pan-view.json

Conformance

This component conforms to the @publictheta/ui-spec pan-view specification. Run the suite against any implementation with pnpm conformance.