Context
Elements claims compatibility with Next.js App Router, but does not currently provide a runnable example developers can clone and experiment with.
A dedicated example would make evaluation easier for developers considering Elements for their own applications.
Definition of Done
Create a complete Next.js App Router example under:
examples/nextjs-app-router/
The example should:
Example Outcome
A developer should be able to:
git clone ...
cd examples/nextjs-app-router
pnpm install
pnpm dev
Visit:
localhost:3000/email-preview
and see an Elements template rendered successfully.
Where to Start
The existing integration test already demonstrates package compatibility:
tests/nextjs-integration/
The goal of this issue is to convert that test setup into a documented, runnable example.
Context
Elements claims compatibility with Next.js App Router, but does not currently provide a runnable example developers can clone and experiment with.
A dedicated example would make evaluation easier for developers considering Elements for their own applications.
Definition of Done
Create a complete Next.js App Router example under:
examples/nextjs-app-router/The example should:
pnpm install && pnpm devapp/email-preview/page.tsxrenderToHtml()Example Outcome
A developer should be able to:
git clone ... cd examples/nextjs-app-router pnpm install pnpm devVisit:
localhost:3000/email-previewand see an Elements template rendered successfully.
Where to Start
The existing integration test already demonstrates package compatibility:
tests/nextjs-integration/The goal of this issue is to convert that test setup into a documented, runnable example.