Infinite canvas

Pro

A pan and zoom surface for any React children: zoom toward the pointer by wheel or pinch, flick to glide, drag items, with a dot grid that re-spaces as you zoom, a draggable minimap and fit to content.

A recording of the component itself. With Pro you get its full source and it runs in your app.

What you get

  • Zoom at the pointer, pinch, and inertial pan with no renders
  • Draggable items sized by content; optional fixed-size pins
  • Minimap with a draggable viewport frame
  • Fit, focus item, zoom buttons, keyboard shortcuts, API
  • One TypeScript file in your project, yours to edit. No runtime package.
  • Keyboard, screen reader and reduced motion support; light and dark; your shadcn theme.

Install

npx shadcn@latest add @goodui-pro/infinite-canvas

Needs a Pro license key in your registry config: two-minute setup. The file lands in components/goodui/infinite-canvas.tsx.

More Pro components

Cover flow

A 3D cover flow: the centre cover faces you while the rest fan out at an angle with floor reflections. The row glides on a spring with the speed of your throw and lands on a cover.

Pro

Card deck swipe

A swipe deck: the top card follows your finger and tilts, a stamp fades in with distance, and a throw keeps the speed of the hand. The pile underneath rises exactly as far as the card has moved.

Pro

Timeline editor

A multi-track video timeline: drag clips along or across tracks and neighbours ripple aside, trim edges, snap to magnetic guides, scrub and play the playhead on a zoomable ruler, all as controlled data.

Pro