A customizable newsletter signup form with validation and success message.
import { NewsletterSignup } from "@/components/ui/newsletter-signup" const Demo = () => { const handleSubmit = async (email: string) => { // Handle form submission // await submitToAPI(email); console.log("hello") }; return <NewsletterSignup onSubmit={handleSubmit} />; }; export { Demo }
Part of HextaUI — browse the full library on 21st.dev.