# Signup Hero

> Split SaaS hero with an inline email signup: announcement pill, headline and copy over a form that validates on submit (the field shakes and explains), shows a spinner while your handler runs, then morphs into a check-your-inbox card. Avatars and a rating add proof. Beside it, a product window shows a doc edited live: a teammate's cursor types, a task ticks off, a sync toast slides in.

- Slug: `signup-hero`
- Category: [Heroes](https://www.assembli.design/category/heroes.md)
- Type: block
- Tags: hero, signup, email-capture, split, saas, product-preview, collaboration
- npm dependencies: motion, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/signup-hero
- Page: https://www.assembli.design/components/signup-hero

![Signup Hero preview](https://www.assembli.design/thumbnails/signup-hero-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `announcement` | `{ tag?: string; label: string; href: string }` |  | The pill above the headline, e.g. { tag: "New", label: "Offline sync is here", href: "/blog/sync" }. |
| `title` (required) | `React.ReactNode` |  |  |
| `description` | `React.ReactNode` |  |  |
| `onSubmit` | `(email: string) => void \| Promise<void>` |  | Called with a valid address. Throw (or reject) with a message to show it under the field. |
| `cta` | `string` | `"Get started"` |  |
| `placeholder` | `string` | `"you@company.com"` |  |
| `finePrint` | `React.ReactNode` |  | Small print under the form, e.g. "Free for up to 5 people · No card required". |
| `proof` | `{ people: SignupHeroPerson[]; rating?: number; label: React.ReactNode }` |  | Avatars and a line of social proof under the form. |
| `visual` | `React.ReactNode` |  | The product picture on the right. Defaults to a live collaborative editor (see EditorPreview). |
| `accent` | `string` | `"oklch(0.58 0.2 262)"` | Accent for the button, focus glow and the preview, as any CSS color. |

## Install

One-time setup (needs a subscription):

1. Add the registry to the project's `components.json`: `{"@assembli":{"url":"https://www.assembli.design/r/{name}.json","headers":{"Authorization":"Bearer ${ASSEMBLI_API_KEY}"}}}` (merge into `"registries"`).
2. Put an API key from https://www.assembli.design/account in `.env.local` as `ASSEMBLI_API_KEY=asm_…`.

Then install with the shadcn CLI (writes `components/signup-hero/signup-hero.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/signup-hero
```

Registry item JSON: https://www.assembli.design/r/signup-hero.json (send `Authorization: Bearer <api key>`)

## Code

> Component source needs an Assembli subscription ($12/month or $96/year) and an API key sent as `Authorization: Bearer <key>`. To get one without copying anything, POST https://www.assembli.design/api/agent/login (or call the MCP tool connect_account), show the user the link it returns, and poll https://www.assembli.design/api/agent/token for the key. Or subscribe at https://www.assembli.design/pricing and create a key at https://www.assembli.design/account.
