Newsletter Signup

An inline email capture with inline validation, a button that morphs to a spinner, a shake on error, a polite live region and a success state with undo.

Try it: Submit an invalid email, then a real one; include “fail” to see the error.

Installation

Install with the shadcn CLI:

npx shadcn@latest add https://www.framekitui.live/r/newsletter-signup.json

Or, with the @framekit namespace registered: npx shadcn@latest add @framekit/newsletter-signup. You can also copy the source into components/ui/newsletter-signup.tsx (view on GitHub).

Usage

import { NewsletterSignup } from '@/components/ui/newsletter-signup'

Props

Component props
PropTypeDefaultNotes
onSubscribe(email) => Promise<void>fake 1.2 sResolve for success, reject for error.
title / description / buttonLabelstring—Copy.

Dependencies

  • motion
  • lucide-react
  • Site Footer

    A calm SaaS footer: link columns with sliding hairline underlines, a live status pill, socials, a language picker and a giant outlined wordmark that rises from the bottom edge.

  • CTA Glow Banner

    A closing call-to-action on an ink panel: a soft lilac and orange aurora trails the pointer behind a fine dot grid, the block rises in on scroll and the arrow nudges on hover.

  • Cookie Consent

    A floating glass consent card with equal-weight Accept / Reject (no dark patterns) and a Customise drawer of per-category switches that expands in place, plus a chip to reopen settings.

  • Feature Comparison Table

    A plan comparison table with a sticky header, collapsible groups, a tinted highlighted column, row hover and a one-plan-at-a-time switcher on phones. Real table semantics with screen-reader labels…

  • Announcement Bar

    A slim ink top bar with a sweeping sheen; messages roll vertically with a blur, dots pick one, hover or focus pauses, and dismissing collapses the height smoothly.

  • Testimonial Wall

    A masonry wall of quote cards whose columns drift in opposite directions at different speeds, faded at the edges, with a pause button; reduced motion shows a static scrollable wall.

See all 14 Website Sections components