# Connector Gallery

> Every service an assistant can connect to, grouped by category, with a search field and category chips.

Component · Connectors · Halo kit · [Live page](https://ui.twentyfirst.media/halo/components/ConnectorGallery/)

Every service an assistant can connect to, grouped by category, with a search field and category
chips. Each tile shows the mark, a line on what the assistant does with it, a hint such as "Needs
the iPhone app", and its state: Connect, Connected (with Open), Needs attention (with Reconnect)
or Coming soon.

- `categories` sets the order of the groups; `filters={false}` hides search and chips.
- `onConnect(id)` and `onOpen(id)`; on glass the tiles turn to glass like cards.

## Example

```tsx
import { ConnectorGallery } from "@twentyfirstmedia/halo";
import { CATEGORIES, CONNECTORS } from "./_connectors";

export default function Preview() {
  return (
    <ConnectorGallery
      connectors={CONNECTORS}
      categories={CATEGORIES}
      onConnect={() => {}}
      onOpen={() => {}}
    />
  );
}
```

## Props

### ConnectorGallery

| Prop | Type | Notes |
| --- | --- | --- |
| `connectors` | `Connector[]` | Required |
| `categories?` | `string[]` | Order of the groups; categories not listed follow in the order they appear. |
| `onConnect?` | `(id: string) => void` |  |
| `onOpen?` | `(id: string) => void` | Opens a connected (or failing) connector. |
| `filters?` | `boolean` | A search field and category chips above the grid (default true). |
| `label?` | `string` | Accessible name (default "Connectors"). |
| `className?` | `string` | Extra class on the root element. |
| `style?` | `CSSProperties` | Inline style on the root element. |
