# KptAppShell (kpt-app-shell) The application skeleton: a top bar, a side panel, the content. Responsive with no configuration. Import: `import { KptAppShell, KptShellNavToggle } from '@konce-pt/angular';` ## Selector `kpt-app-shell` ## Inputs / outputs - `sidenavOpen`: model (default `true`) - the state of the DOCKED panel (and of the forced `over` mode); two-way `[(sidenavOpen)]` - `sidenavCompactOpen`: model (default `false`) - the state of the OVERLAY in `auto` mode - `sidenavMode`: `'auto' | 'side' | 'over'` (default **`'auto'`**) - `sidenavBreakpoint`: `'sm'|'md'|'lg'|'xl'|'2xl'` (default `'lg'`) - from this threshold upward `auto` docks the panel, below it turns it into an overlay - `sidenavRailBreakpoint`: the same set, `'always'` or `null` (default `null`) - enables the icon rail in the band from `sidenavBreakpoint` up to this threshold; the value must be HIGHER than `sidenavBreakpoint`. `'always'` has no upper bound: at every width from `sidenavBreakpoint` up the toggle switches between the full panel and the icons, and below it the overlay opens and closes as usual - `sidenavLabel`: string - the panel's a11y label; empty = `appShell.navigation` from the dictionary - `sidenavId`: readonly string - the panel's identifier (`aria-controls`) - `isOverlay()`, `isSidenavOpen()`: Signal - the effective state for the current layout - `toggleSidenav()`, `openSidenav()`, `closeSidenav()` - they hit the state that belongs to the layout ## Projection slots - `[kptShellToolbar]` -> the top bar - `[kptShellSidenav]` -> the side panel - the default content -> the main area ## Example Dashboard ## The three bands of 'auto' mode | width | layout | what closing does | |---|---|---| | `< sidenavBreakpoint` | overlay + scrim | the panel slides off the edge (state: `sidenavCompactOpen`) | | `>= sidenavBreakpoint`, `< sidenavRailBreakpoint` | icon rail | the panel narrows to `--kpt-sidenav-rail-width` | | `>= sidenavRailBreakpoint` (or no rail) | full panel | the panel hides entirely (with `'always'` this band does not exist) | ## Why TWO open states "Open" means different things on either side of the threshold: on a desktop the panel stands open by default, on a phone it has to be hidden by default. If both layouts shared one model, moving to a narrow screen would have to overwrite the application's state, and coming back to a wide one would have nothing to restore. Keeping them apart means the desktop intent survives narrowing and widening the window for free. The `kptShellNavToggle` button hits the right state on its own - do not write `navOpen.set(...)` by hand, because on a narrow screen you would be setting the wrong model. It also supplies `aria-expanded`, `aria-controls` and `aria-label`, and it puts them where a screen reader can use them. On a native `