Newsletter Form

A reusable form component designed for newsletter signups, featuring an email input field and a submit button.

The component comes with a server action that handles adding users to a Resend audience.

Usage

import { NewsletterForm } from "@/app/_components/core/newsletter-form/_components/newsletter-form";
<NewsletterForm layout="inline" />

Props

NameTypeDefaultDescription
layout"inline" | "stacked"stackedThe layout of the form.