Newsletter Signup

An inline email capture form with a required email field and a Subscribe button that stack on mobile and sit side by side on wider screens. Tailwind styled.

src/registry/ui/newsletter-signup.tsx/r/newsletter-signup.json

Installation#

bash
npx shadcn@latest add @minidev/newsletter-signup

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/newsletter-signup.json

Usage#

tsx
import { NewsletterSignup } from "@/components/ui/newsletter-signup"

export function Example() {
  return (
    <NewsletterSignup />
  )
}

API reference#

NewsletterSignup props
PropTypeDefault
onSubmit(email: string) => void-
classNamestring-

Dependencies#

npm

React only

Built from

Examples#

All Landing page sections for React and Tailwind

Learn more