Preet Suthar

Newsletter Signup

Buttons 104

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.8K
  • Shining Text

    Shining Text

    1.7K
  • Magic Text

    Magic Text

    918
  • Toolbar

    Toolbar

    868
  • Hero 2

    Hero 2

    864
  • Typewriter Text

    Typewriter Text

    819
  • AI Chat Input

    AI Chat Input

    792
  • Full Screen Signup

    Full Screen Signup

    776

More in Buttons

View all
  • Button

    Button

    20
  • Button

    Button

    3
  • Button Group

    Button Group

    18
  • Button

    Button

    149
  • Icon Label Subtext Button

    Icon Label Subtext Button

    69
  • Button

    Button

    9
  • Button

    Button

    37
  • Texture Button

    Texture Button

    113