/** One row of the sidebar. A row with `children` is a group; a row with `route` is a link. */ export interface SySidebarEntry { id: string; label: string; /** * SVG URL, or a built-in / registered icon name ('sy-cart'). For a CSS-class icon ('pi pi-home') * put the element in the light DOM with `slot="icon-"` instead; the class needs document CSS. */ icon?: string; /** Path the link goes to, e.g. '/portal/icons'. Matched against `current`. */ route?: string; /** Section on the page, e.g. 'svg' for '#svg'. */ fragment?: string; children?: readonly SySidebarEntry[]; expanded?: boolean; } /** desktop = always visible column; mobile = full-width sliding drawer; auto = picks by `breakpoint`. */ export type SySidebarMode = 'auto' | 'desktop' | 'mobile';