View as Markdown

API reference: @salmonui/mcp

IndexFamilyinterface

import type { IndexFamily } from '@salmonui/mcp';
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;
    }[];
}
IndexFamily members (9)
NameSignatureDescription
namereadonly name: string;

Family slug (button, date-picker).

specifierreadonly specifier: string;

Public import specifier (@salmonui/buttons/button).

subpathsreadonly subpaths: readonly string[];

Further public entries of the family (@salmonui/charts/chart/features).

stylesheetreadonly stylesheet: string | null;

The family stylesheet specifier, or null when the family has no own CSS.

summaryreadonly summary: string;

One sentence.

componentsreadonly components: readonly string[];

Component names exported by the family entry.

hooksreadonly hooks: readonly string[];

Hook names (use*) exported by the family entry.

docsreadonly docs: readonly string[];

Docs page paths that import the family.

alsoImportoptionalreadonly alsoImport?: readonly { readonly stylesheet: string; readonly when: string | null; }[];

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.