Search for a command to run...
Email capture form with confirmation email — newsletters, waitlists, footer signups. Powered by Resend and React Email.
Add these to your .env before installing. The CLI runs Prisma generate and migrate using these values during install — add them first, or the install will fail partway through.
DATABASE_URLrequiredPostgreSQL connection string.
e.g. postgresql://user:pass@localhost:5432/mydbRESEND_API_KEYrequiredResend API key for sending the confirmation email.
e.g. re_xxxxxxxxxxSUBSCRIBE_FROM_EMAILoptionalSender address for confirmation emails. Falls back to onboarding@resend.dev if unset — replace before production.
e.g. hello@yourdomain.comnpx feature101@latest add subscribe| Prop | Type | Default | Description |
|---|---|---|---|
title | string | "Subscribe to our newsletter" | Heading text. |
description | string | "Get updates delivered straight to your inbox." | Subtext under the heading. |
className | string | — | Custom CSS classes. |
onSubscribed | (email: string, result?: SubscribeResult) => void | — | Callback fired with the email and full server result on confirmed success only. |