Kavi Katiyar

Newsletter Card

Buttons 12

About

Newsletter Card A visually polished and accessible newsletter sign-up form. It features a distinct, theme-aware color palette and subtle animations on focus and hover to enhance user experience.

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

Code

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

Usage.tsx

"use client"; // Required for useState and event handlers

import { NewsletterSignUp } from "@/components/ui/newsletter-card";

export default function NewsletterSignUpDemo() {
  // Demo handler function to show submission success
  const handleSubscribe = (email: string) => {
    alert(`Thank you for subscribing with: ${email}`);
  };

  return (
    <div className="flex min-h-[400px] w-full items-center justify-center bg-background p-4">
      <NewsletterSignUp
        title="Stay in the know."
        subtitle="Get the Measured Newsletter"
        placeholder="Your email address"
        buttonAriaLabel="Submit email for newsletter"
        onSubmit={handleSubscribe}
      />
    </div>
  );
}

Dependencies

More by Kavi Katiyar

View all
  • 3D Card

    3D Card

    1.1K
  • Bento Product Features

    Bento Product Features

    880
  • Testimonial Slider

    Testimonial Slider

    746
  • Card

    Card

    628
  • Order Confirmation Card

    Order Confirmation Card

    542
  • Project Detail View

    Project Detail View

    436
  • Animated Card

    Animated Card

    413
  • Performance Benchmark Card

    Performance Benchmark Card

    410

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1