Tapas UI
Esc
  • IntroductionGetting startedWhat Tapas UI is and where to start.
  • InstallationGetting startedSet up shadcn/ui and add your first section.
  • CLI & AI agentsGetting startedThe shadcn CLI, the @tapas namespace, the MCP server and AI prompts.
  • TemplatesGetting startedWhole pages built from sections, installed with one command.
  • Demo sitesGetting startedThree fictional sites built only from Tapas sections.
  • ThemingCustomizationHow sections pick up your colors and radius.
  • ColorsCustomizationEvery CSS variable sections read, what it is for and where it is used.
  • Dark modeCustomizationSections follow your .dark variables.
  • MotionCustomizationPlain and motion versions, reduced motion and pause controls.
  • AccessibilityCustomizationWhat every section guarantees.
  • Waitlist formsGuidesPost signups to your own API route and store them.
  • Checkout linksGuidesPoint pricing buttons at Stripe payment links or any URL.
Menu
Browse the docs

DocsHeroes

Hero: waitlist

Hero with an email signup form that works without JavaScript.

Preview

Version
Preview theme color
More themes

The field glows on focus. With onSubmit, the button turns into “Sending…” and then the form morphs into a success message. With reduced motion turned on, it renders the plain layout.

Coming soon

Be first in line

Leave your email and we will write once, when it launches. Sample copy.

One email at launch. No spam.

Coming soon

Be first in line

Leave your email and we will write once, when it launches. Sample copy.

One email at launch. No spam.

Installation

Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.

Usage

import { HeroWaitlist } from "@/components/custom/hero-waitlist";

<HeroWaitlist
  title="Be first in line"
  action="/api/waitlist"
  note="One email when we launch. No spam."
/>
import { HeroWaitlistMotion } from "@/components/custom/hero-waitlist/hero-waitlist-motion";

<HeroWaitlistMotion
  title="Be first in line"
  action="/api/waitlist"
  onSubmit={async (email) => {
    await fetch("/api/waitlist", { method: "POST", body: JSON.stringify({ email }) });
  }}
/>

Props

PropTypeDefaultDescription
title* (required)string–The headline, rendered as the page's h1.
eyebrowstring–Small badge above the title.
descriptionstring–Supporting line under the title.
action* (required)string–Where the form posts (your API route or a form service).
method"post" | "get""post"Form method.
inputLabelstring"Email address"Label for the email field (visually hidden).
buttonLabelstring"Join the waitlist"Submit button text.
notestring–Small print under the form.
honeypotNamestring–Name of a hidden field only bots fill in. Your endpoint should drop submissions where it is not empty.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
PropTypeDefaultDescription
title* (required)string–The headline, rendered as the page's h1.
eyebrowstring–Small badge above the title.
descriptionstring–Supporting line under the title.
action* (required)string–Where the form posts (your API route or a form service).
method"post" | "get""post"Form method.
inputLabelstring"Email address"Label for the email field (visually hidden).
buttonLabelstring"Join the waitlist"Submit button text.
notestring–Small print under the form.
honeypotNamestring–Name of a hidden field only bots fill in. Your endpoint should drop submissions where it is not empty.
...propsReact.ComponentProps<"section">–Any other section attribute (id, aria-*, data-*, ref) goes to the root element.
onSubmit(email: string) => Promise<void>–Handle the signup yourself; shows sending, success and error states. Without it the form posts to action.

Accessibility

  • The email field has a real label and uses type="email" with autocomplete, so browsers validate and fill it.
  • The motion version follows the visitor's reduced-motion setting and never hides content before it animates.