Next.js (App Router)
Add the ShowTrust widget to a Next.js 13+ App Router project. The script tag goes in your root layout; the container <div> goes wherever you want the wall of love to appear.
Install#
You don't need to install a package. The widget loads from our CDN. Grab the embed snippet from your dashboard (or via GET /v1/projects/:id/embed-snippet) and replace YOUR_PROJECT_ID with the value from /v1/projects.
Add the script#
In app/layout.tsx, use Next's <Script> component with strategy="afterInteractive":
Add the container#
Wherever you want the wall of love to render, drop in the container <div>:
Run npm run dev and the widget should render with your approved testimonials.