Preet Suthar

Newsletter Signup

Buttons 94

About

A customizable newsletter signup form with validation and success message.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Newsletter Signup to your project and fits it to your theme.

Code

How Newsletter Signup is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

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 }

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K
  • Shining Text

    Shining Text

    1.6K
  • Magic Text

    Magic Text

    849
  • Toolbar

    Toolbar

    830
  • Hero 2

    Hero 2

    820
  • Typewriter Text

    Typewriter Text

    780
  • AI Chat Input

    AI Chat Input

    745
  • Full Screen Signup

    Full Screen Signup

    743

More in Buttons

View all
  • Texture Button

    Texture Button

    95
  • Eclipse Button

    Eclipse Button

    6
  • App Store Button

    App Store Button

    457
  • Button Group

    Button Group

  • Button

    Button

    32
  • Button

    Button

    14
  • Button

    Button

    65
  • HeroUI Button Group

    HeroUI Button Group

    9