# IndexFamily (@salmonui/mcp)

> The IndexFamily interface of @salmonui/mcp.

Canonical: https://salmonui.dev/docs/reference/mcp/IndexFamily

```ts
import type { IndexFamily } from '@salmonui/mcp';
```

Entry index: https://salmonui.dev/docs/reference/mcp (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/mcp.md).

## Reference

Kind: interface

```ts
interface IndexFamily {
    readonly name: string;
    readonly specifier: string;
    readonly subpaths: readonly string[];
    readonly stylesheet: string | null;
    readonly summary: string;
    readonly components: readonly string[];
    readonly hooks: readonly string[];
    readonly docs: readonly string[];
    readonly alsoImport?: readonly {
        readonly stylesheet: string;
        readonly when: string | null;
    }[];
}
```

Members (9):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `name` | `readonly name: string;` |  | Family slug (`button`, `date-picker`). |
| `specifier` | `readonly specifier: string;` |  | Public import specifier (`@salmonui/buttons/button`). |
| `subpaths` | `readonly subpaths: readonly string[];` |  | Further public entries of the family (`@salmonui/charts/chart/features`). |
| `stylesheet` | `readonly stylesheet: string \| null;` |  | The family stylesheet specifier, or null when the family has no own CSS. |
| `summary` | `readonly summary: string;` |  | One sentence. |
| `components` | `readonly components: readonly string[];` |  | Component names exported by the family entry. |
| `hooks` | `readonly hooks: readonly string[];` |  | Hook names (`use*`) exported by the family entry. |
| `docs` | `readonly docs: readonly string[];` |  | Docs page paths that import the family. |
| `alsoImport` | `readonly alsoImport?: readonly {     readonly stylesheet: string;     readonly when: string \| null; }[];` | optional | Stylesheets of other families to import with this one because its stylesheet does not carry them; `when` is null when always needed. Every other family it renders is carried by its own stylesheet. |
