dssoca docs

Sidebar

App-shell navigation sidebar.

The application sidebar: grouped, icon-led navigation items with optional status dots.

Demo

live · storybook Open in Storybook

Demo loads from http://localhost:6006. Run pnpm storybook for it to render locally.

Usage

svelte
<script>
  import { Sidebar } from 'dssoca';
  let active = $state('hub');
</script>

<Sidebar {active} onSelect={(id) => (active = id)} />

Props

PropTypeDefaultDescription
activestring'hub'Active item id.
groupsSideGroup[]Sections of { id, label, icon, status } items.
onSelect(id: string) => voidSelection handler.
size'sm' | 'md' | 'lg'Per-instance size override; inherits the ancestor `data-size-variant` when unset.