Skip to content
Haze UI

Waitlist: centered signup panel

A centered launch announcement and email signup inside a bordered panel.

pnpm dlx shadcn@latest add @haze/waitlist-signup-panel
Open preview in a new tab
Liveno JavaScript

When to use

  • Collecting interest before a product becomes available
  • An email address is enough for the initial signup

When not to use

  • Collecting a detailed inquiry; use contact-split-form
  • The signup is for a recurring newsletter; use newsletter-inline

Installation

Add the Haze registry to components.json once, then install Waitlist: centered signup panel with the shadcn CLI. Works in any Astro project with Tailwind CSS v4.

pnpm dlx shadcn@latest add @haze/waitlist-signup-panel
First time? Registry and theme setup

1. Add to components.json:

{
  "registries": {
    "@haze": "http://localhost:4329/r/{name}.json"
  }
}

2. Install the theme once: npx shadcn@latest add @haze/theme, then import it after Tailwind in your global CSS:@import "./haze.css";

API reference

PropTypeDefaultDescription
idstring"waitlist-signup-panel"Unique prefix for the section and email field.
eyebrowstring"Coming soon"Small label above the heading.
titlestringdemo headingWaitlist heading.
descriptionstringdemo copyExplanation of the upcoming launch.
headingLevel1 | 2 | 32Level of the section heading.
formActionstring""POST endpoint; without it the form is labelled as a demo and submission is disabled.
submitLabelstring"Join the waitlist"Signup button text.
privacyNotestringdemo privacy noteExplanation shown when an endpoint is configured.
classstring–Additional section classes.

Keyboard interactions

Tab
Reach the email field and the configured signup button.

Accessibility

  • The required email input has a visible label and uses native email validation.
  • The demo state explains why the signup button is disabled until an endpoint is supplied.

Notes for AI

Copy into Claude Code, Cursor, Codex or any coding agent. Agents can also read the Markdown version of this page.

  • Install and use

    Install the Haze UI block "Waitlist: centered signup panel" with `npx shadcn@latest add @haze/waitlist-signup-panel`. If components.json has no "@haze" registry yet, add "registries": { "@haze": "http://localhost:4329/r/{name}.json" }. If src/styles/haze.css does not exist yet, run `npx shadcn@latest add @haze/theme` once and import it from the global stylesheet after Tailwind. The CLI stops at an overwrite question when a Haze file already exists and differs, even with --yes, and then installs nothing after it: read its output. If the user has not edited their Haze files, re-run with --overwrite to take the registry versions; if they have, ask them before overwriting. Then import WaitlistSignupPanel from "@/components/haze/blocks/waitlist-signup-panel.astro" (or the relative path) and render it where it fits the page. Keep Haze token classes (bg-background, text-muted-foreground, border-border...) and never hardcode colors. Docs: http://localhost:4329/blocks/waitlist-signup-panel.md

  • Customize with real content

    Adapt the Haze waitlist-signup-panel block for our product. Replace the demo values of these props with our real content: id, eyebrow, title, description, headingLevel, formAction, submitLabel, privacyNote, class. Keep the layout, the heading level rules and these accessibility details: The required email input has a visible label and uses native email validation. The demo state explains why the signup button is disabled until an endpoint is supplied. Do not add raw color classes; use the Haze tokens.

  • Choose the right block

    Before using waitlist-signup-panel, check it fits: use it when collecting interest before a product becomes available; an email address is enough for the initial signup. Avoid it when collecting a detailed inquiry; use contact-split-form; the signup is for a recurring newsletter; use newsletter-inline. Alternatives: @haze/contact-split-form, @haze/newsletter-inline.

Dependencies

  • npm: @lucide/astro
  • @haze/button
  • @haze/input
  • @haze/utils
  • @haze/theme (one-time setup)

Source · Original Haze UI work.

Catalog

↑↓ moveEnter openEsc close

Keyboard shortcuts

CtrlK
Command palette
/
Focus search
←↑→↓
Move between cards
jk
Next / previous card
ci
Copy code / install command (detail page)
[]
Previous / next entry
?
This help
Esc
Close dialog