Docs-Kopfnavigation — component.docs-topnav
Kopf-Navigation fuer Dokumentationen und Entwicklerportale (topbar-Slot von template.docs-shell): Eintraege als Pillen, Eintraege mit Unterpunkten als Aufklapp-Menue mit Symbol und Kurzbeschreibung (natives details, ohne JavaScript nutzbar), optionales Suchfeld als GET-Formular auf eine echte Suchse
Beispiele
Entwicklerportal mit Menüs und Suche
Unsicherer Link und ungültiger Parameter werden verworfen
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
label | string | "Hauptnavigation" |
items * | array | — |
searchCompact | boolean | false |
searchAction | string | "" |
searchParam | string | "q" |
searchPlaceholder | string | "Suchen" |
searchHidden | array | [] |
Events & Slots
Events: navigate
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--docstopnav-row | var(--size-9) |
--docstopnav-text | var(--color-text-muted) |
--docstopnav-hover | var(--color-surface-sunken) |
--docstopnav-active-surface | var(--color-accent-soft) |
--docstopnav-active-text | var(--accent-text-color, var(--color-text-link)) |
--docstopnav-panel-surface | var(--color-surface-overlay, var(--color-surface-default)) |
Genutzte Design-Tokens
border.hairline color.accent-soft color.border.default color.border.subtle color.surface.default color.surface.inverse color.surface.overlay color.surface.sunken color.text.default color.text.inverse color.text.link color.text.muted duration.fast easing.standard elevation.overlay focus.ring-color focus.ring-offset focus.ring-width font.family.default font.family.mono layer.sticky leading.base leading.tight radius.control radius.full radius.surface size.1 size.10 size.12 size.2 size.3 size.4 size.5 size.8 size.9 text.md text.sm text.xs weight.medium weight.semibold