- Accueil
- Starlight Mega Menu Plugin
- Mega Menu Configuration Reference
Mega Menu Configuration Reference
Ce contenu n’est pas encore disponible dans votre langue.
TypeScript Interfaces
Section titled “TypeScript Interfaces”MegaMenuConfig
Section titled “MegaMenuConfig”The root configuration object passed to the plugin integration:
export interface MegaMenuConfig { items: MegaMenuItem[]; mobileLabels?: { open?: string; openTranslations?: Record<string, string>; close?: string; closeTranslations?: Record<string, string>; menu?: string; menuTranslations?: Record<string, string>; };}MegaMenuItem
Section titled “MegaMenuItem”Represents a top-level navigation item on the header bar:
| Property | Type | Required | Description |
|---|---|---|---|
label | string | Yes | Primary display text in the navigation header. |
href | string | No | Direct URL link if the item is a standalone link rather than a dropdown. |
translations | Record<string, string> | No | Localized labels mapped by BCP-47 locale tag (e.g., {"ja": "ソリューション"}). |
content | MegaMenuPanel | No | Dropdown panel definition containing categories and links. |