# Contact Split

> Contact section with support channels on the left and a routed form on the right. Topic cards swap in each topic's own fields (text inputs or chip choices), message prompt and response time; validation runs on send with inline errors and focus on the first one, then the card turns into a confirmation that says who will reply and when.

- Slug: `contact-split`
- Category: [Contact](https://www.assembli.design/category/contact.md)
- Type: block
- Tags: contact, form, validation, routing, support, sales, success-state
- npm dependencies: motion, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/contact-split
- Page: https://www.assembli.design/components/contact-split

![Contact Split preview](https://www.assembli.design/thumbnails/contact-split-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow` | `React.ReactNode` | `"Contact"` |  |
| `title` | `React.ReactNode` | `"Talk to a person, not a queue"` |  |
| `intro` | `React.ReactNode` |  |  |
| `topics` (required) | `ContactSplitTopic[]` |  |  |
| `channels` | `ContactSplitChannel[]` |  |  |
| `aside` | `React.ReactNode` |  | Small print under the channels, e.g. an office address. |
| `legal` | `React.ReactNode` |  | Small print under the send button, e.g. a privacy note with a link. |
| `onSubmit` | `(data: ContactSplitSubmission) => Promise<void> \| void` |  | Called with the form data. Throw to show an error; resolve to show the confirmation. |

## 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/contact-split/contact-split.tsx` and installs dependencies):

```bash
npx shadcn@latest add @assembli/contact-split
```

Registry item JSON: https://www.assembli.design/r/contact-split.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.
