# FAQ Tabs

> The classic centred FAQ section: category tabs with counts over a hairline accordion, one answer open at a time or several. Search looks across every topic, groups hits under their category, highlights the matched words and opens answers where the match is. Questions deep-link by hash, find-in-page opens closed answers, and a "Still have questions?" card with team avatars closes it.

- Slug: `faq-tabs`
- Category: [FAQs](https://www.assembli.design/category/faqs.md)
- Type: block
- Tags: faq, accordion, tabs, search, highlight, deep-link, support
- npm dependencies: @base-ui/react, motion, lucide-react
- shadcn/ui dependencies: none
- Live preview: https://www.assembli.design/preview/faq-tabs
- Page: https://www.assembli.design/components/faq-tabs

![FAQ Tabs preview](https://www.assembli.design/thumbnails/faq-tabs-light.png)

## Props

Other props pass through to the root element.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `eyebrow` | `React.ReactNode` | `"FAQ"` |  |
| `title` | `React.ReactNode` | `"Frequently asked questions"` |  |
| `intro` | `React.ReactNode` |  |  |
| `items` (required) | `FaqTabsItem[]` |  |  |
| `categories` | `string[]` |  | Tab order. Defaults to the order categories first appear in `items`. |
| `defaultCategory` | `string` |  |  |
| `multiple` | `boolean` | `false` | Let several answers stay open at once. |
| `searchable` | `boolean` | `true` | Show the search field. |
| `searchPlaceholder` | `string` | `"Search questions"` |  |
| `contact` | `FaqTabsContact` |  |  |

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

```bash
npx shadcn@latest add @assembli/faq-tabs
```

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