---
title: "Hero with signup"
description: "A split hero that starts a trial from an email field, beside a glimpse of the week's classes."
plan: Pro
docs: https://ui.edbn.me/docs/blocks/hero-with-signup
---

# Hero with signup

A split hero that starts a trial from an email field, beside a glimpse of the week's classes.

A bad address shows its error where the proof line was and focuses the field; the button turns to a spinner while it works. Success swaps the form for one line at the same height, with a way back to use another email, and screen readers hear each change. Pass onStartTrial for your sign-up API; a rejection shows a retry message.

A Pro block built on Base UI and Tailwind CSS v4.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/hero-with-signup
```

## Dependencies
- npm: lucide-react@^1.33.0
- edbn: edbn-base, button, card, field, input, meter, spinner, text-link

## Source

The source is part of Pro (https://ui.edbn.me/pricing). The install above adds it to the project, ready to edit.

## More heroes blocks

All 4, with install commands: https://ui.edbn.me/docs/blocks/heroes · https://ui.edbn.me/docs/blocks/heroes.md

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
