Skip to main content
SuperDoc works seamlessly with Next.js. The recommended approach is using @superdoc-dev/react, which handles SSR automatically. The React wrapper is the simplest way to integrate SuperDoc with Next.js:

App Router (Next.js 13+)

Pages Router

The React wrapper is SSR-safe: it renders container divs on the server (hidden until initialized) and starts SuperDoc after hydration. Use renderLoading for custom loading UI, or Next.js dynamic imports if you prefer to skip SSR entirely.

CSS Import

Import styles in your layout or page:

Next Steps

React Integration

Full React wrapper documentation

Configuration

Configuration options

Collaboration

Real-time collaboration

React Example

React + TypeScript example

Next.js Example

Next.js SSR integration