# Support Hub

> Help-centre front door: a large search that answers from your articles as you type, with highlighted matches, arrow-key navigation, Enter to open and popular searches to start from. Below it, contact channel cards show live status, and phone-style channels with opening hours say whether they're open right now in their own time zone and when that changes.

- Slug: `support-hub`
- Category: [Contact](https://www.assembli.design/category/contact.md)
- Type: block
- Tags: support, help-center, search, combobox, contact, opening-hours, status
- npm dependencies: motion, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/support-hub
- Page: https://www.assembli.design/components/support-hub

![Support Hub preview](https://www.assembli.design/thumbnails/support-hub-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow` | `React.ReactNode` | `"Support"` |  |
| `title` | `React.ReactNode` | `"How can we help?"` |  |
| `intro` | `React.ReactNode` |  |  |
| `articles` (required) | `SupportHubArticle[]` |  |  |
| `popular` | `string[]` |  | Chips under the empty search that fill it in. |
| `channels` (required) | `SupportHubChannel[]` |  |  |
| `footer` | `React.ReactNode` |  | A line at the bottom, e.g. a system status link. |
| `searchHref` | `string` |  | Where "See all results" goes; gets `?q=` appended. |

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

```bash
npx shadcn@latest add @assembli/support-hub
```

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