Origin UI

Newsletter Section

Buttons 77

About

A customizable newsletter subscription section with a modern design, loading states, and background effects. Features - Customizable title and styling - Built-in form handling and error states - Loading indicators - Animated background effect (optional) - Accessible form inputs - Dark mode support - Responsive design

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

Code

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

Usage.tsx

import { NewsletterSection } from "@/components/blocks/newsletter-section"

async function mockSubscribe(email: string) {
  // API request simulation
  await new Promise(resolve => setTimeout(resolve, 1000))
  
  if (email.includes('error')) {
    return { success: false, error: 'Something went wrong!' }
  }
  
  return { success: true }
}

function NewsletterSectionDemo() {
  return (
    <div className="space-y-8">
      <NewsletterSection 
        title="Join our newsletter"
        onSubscribe={mockSubscribe}
      />
    </div>
  )
}

export { NewsletterSectionDemo }

Dependencies

More by Origin UI

View all
  • Dialog

    Dialog

    1.2K
  • Avatar

    Avatar

    951
  • useImageUpload

    useImageUpload

    926
  • usePagination

    usePagination

    622
  • Popover

    Popover

    384
  • Button

    Button

    364
  • Command

    Command

    321
  • Accordion

    Accordion

    258

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • App Store Button

    App Store Button

    454
  • Notification Button

    Notification Button

    103