# KptSidenav (kpt-sidenav)
A side panel - a styled navigation container, usually in the `kptShellSidenav` slot
of `kpt-app-shell`. Import: `import { KptSidenav } from '@konce-pt/angular';`
## Selector
`kpt-sidenav`
## Content
Anything (ng-content) - it lands in the scrollable area. `` elements come with built-in
navigation-entry styling (hover with `--kpt-color-muted`).
## Data-driven navigation - `groups`
Hand the panel a list of groups and it draws the whole menu itself: group headings (e.g. "Dashboards",
"Pages"), entries with icons and counters, expandable branches, and above them a "Favorites" /
"Recently" tab pair. Projected content still works and lands ABOVE the data menu (a search field,
a logo); without `groups` the panel is the plain container it always was.
import { KptSidenav, type KptSidenavGroup } from '@konce-pt/angular';
readonly nav: KptSidenavGroup[] = [
{ id: 'dashboards', label: 'Dashboards', items: [
{ id: 'overview', label: 'Overview', icon: 'chart-bar', url: '/overview' },
{ id: 'shop', label: 'eCommerce', icon: 'shopping-cart', children: [
{ id: 'orders', label: 'Orders', url: '/orders', badge: 12 },
{ id: 'products', label: 'Products', url: '/products' },
] },
] },
];
`KptSidenavItem`: `id` (required, unique across the WHOLE menu including group ids - favorites and
recents are stored by it), `label`, `icon?`, `url?` (renders ``, otherwise a `