Stories viewer

Pro

Phone-style stories: segmented progress bars fill per slide, taps step, a hold pauses, and a swipe turns a 3D cube to the next person; pull down and the viewer shrinks away.

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

What you get

  • 3D cube turn between people, by swipe or by itself
  • Tap sides to step, hold to pause, pull down to close
  • Image, gradient or any React node as a slide
  • Per-slide durations drive the progress bars
  • 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/stories-viewer

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

More Pro components

Spotlight tour

A product tour whose spotlight flows between targets: the cutout morphs position, size and radius on one spring while the note follows, flips at edges and scrolls targets into view.

Pro

Photo lightbox

A gallery whose thumbnail grows into a full-screen viewer with the same crop and corners; pinch, wheel or double tap to zoom, swipe to the next photo, drag down to close.

Pro

Animated context menu

A right-click and long-press menu that grows from the click point, flips at viewport edges and opens nested submenus with safe-triangle pointer intent, a gliding highlight, animated checks and radio dots.

Pro