DDBS UI
modals

Newsletter Signup

An email sign-up block with inline validation, a pending state and a success message, inline or stacked. Follows the surrounding colours.

npx shadcn@latest add https://ui.develop-better-solutions.com/r/newsletter-signup.json
Dependencies:lucide-react
Fullscreen

Stay in the loop

One short email a month. No spam.

Join the list

First access to new collections.

Usage

newsletter-signup-example.tsx
import { NewsletterSignup } from "@dbs/ui";

export default function NewsletterSignupExample() {
  return (
    <div className="grid w-full max-w-4xl gap-6 md:grid-cols-2">
      <div className="rounded-3xl border border-line p-6">
        <NewsletterSignup title="Stay in the loop" description="One short email a month. No spam." />
      </div>
      <div className="rounded-3xl bg-ink p-6 text-canvas [&_*]:!text-inherit [&_input]:!text-ink [&_button]:!bg-canvas [&_button]:!text-ink">
        <NewsletterSignup title="Join the list" description="First access to new collections." layout="stacked" />
      </div>
    </div>
  );
}