Different ways to integrate newsletter subscription forms
Full-featured form with name fields in a card layout
Compact inline form with email only
Ultra-compact form for footer or sidebar
With custom styling and messaging
How to integrate in your code
import { SDKProvider } from "@letterhead/core/react"
import { SubscribeForm } from "@/components/subscribe-form"
export default function Page() {
return (
<SDKProvider config={{
apiUrl: "https://api.doormart.co",
organizationId: "your-org-id",
apiKey: "your-api-key" // Optional
}}>
<SubscribeForm
title="Join our newsletter"
tags={["newsletter"]}
source="homepage"
/>
</SDKProvider>
)
}