Banner Newsletter Inline
An in-article signup banner: on submit the paper plane flies off, the field collapses and a confirmation line draws itself in.
bannernewsletteremailinlineform
Installation
Run the shadcn CLI in a project with Tailwind CSS. The component lands in components/pixelpapa/banner-newsletter-inline.tsx.
$pnpm dlx shadcn@latest add "https://pixelpapa.com/r/banner-newsletter-inline.json"Manual install+
1. Install the dependencies.
$pnpm add lucide-react motion2. Copy the code from the Code tab above into your project. It imports the cn helper from @/lib/utils, which every shadcn project already has.
Build it with AI
Prefer to let an agent do the wiring? Copy this prompt, describe where the component should go, and paste.
AI prompt
Paste into Claude, Cursor, v0 or Lovable
Add the "Banner Newsletter Inline" component from PixelPapa UI to this project. What it is: An in-article signup banner: on submit the paper plane flies off, the field collapses and a confirmation line draws itself in. Category: Banners. Depends on: lucide-react, motion. 1. Install it with the shadcn CLI: npx shadcn@latest add "https://pixelpapa.com/r/banner-newsletter-inline.json" (If the CLI is unavailable, fetch that URL, write files[0].content to components/pixelpapa/banner-newsletter-inline.tsx and install the listed dependencies.) 2. Import it from "@/components/pixelpapa/banner-newsletter-inline" and place it where I describe below. 3. Keep its animation timings and accessibility attributes. Replace the demo copy and data with content that fits my product, and use my existing theme tokens (bg-background, text-foreground, bg-primary, border-border) rather than hard-coded colours. Where to use it: <describe the page and position here>
More banners
- Banner Announcement MarqueeA top strip that scrolls a seamless loop of announcements between faded edges, pauses on hover or focus and collapses when dismissed.
- Banner Cookie ConsentA corner consent card whose preferences panel unfolds with spring height, with real switches per category and a chip to reopen it after a choice.
- Banner Countdown SaleA sale strip with a ticking countdown whose digits roll over, a sweeping sheen, and a promo code that confirms itself when copied.
- Banner Status IncidentA status strip with a pulsing severity dot that expands on a spring into a timeline of incident updates, recoloured by severity.
- Banner Upgrade ProgressAn in-app usage banner whose meter springs to the current value, counts the number up and shifts from calm to amber to red as the plan limit nears.