import type { GroupedSidebarSettings } from './types.svelte'; type Props = { settings: GroupedSidebarSettings; }; /** * A sidebar with tabbed groups and collapsible sections. Supports accordion (single expanded) and multi- * expand modes, with optional auto-height sections. Configure via `GroupedSidebarSettings`; pass groups * + sections via `SidebarGroupModel` / `SidebarGroupSectionModel`. * * A section's `component` accepts a `Snippet` or `DynamicComponentModel`. Svelte 5 hoists `{#snippet}` * declarations, so assign a markup snippet to `component` DIRECTLY in the script-level settings — no * dummy-placeholder + post-init bind needed: * * ```svelte * * {#snippet general()}