A sales CRM shell with a dark icon rail and a paper colored secondary panel whose views swap with a slide as the section changes. The rail has a sliding glow bar and badges, the panel has search, grouped views with counters, a quota ring and a collapse button. The demo is a working CRM: KPI tiles with sparklines, a funnel, a stacked bar revenue forecast, a drag and drop deals kanban that updates every chart, a sortable contacts table, follow-ups with checkboxes, a quota ring, a win rate line and lead source bars. Keyboard arrows move within and between the two columns, with typeahead, and the panel becomes an overlay on phones.
Included in Standard and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { SidebarTwoLevel } from "@/components/hyperblur-pro/sidebar-two-level"
<SidebarTwoLevel accent="#1fa971" user={{ name: "Noor Rahman", role: "Sales lead" }} onNavigate={(section, item) => go(section, item)} style={{ height: 900 }} />| Prop | Type | Default | Description |
|---|---|---|---|
| items | SidebarTwoLevelSection[] | Pipeline, Contacts, Companies, Activities and Reports | Rail sections with id, label, icon, optional subtitle and badge, and groups of subitems (label, optional icon or color dot, optional count). |
| user | { name: string; role: string; avatar?: string } | { name: "Noor Rahman", role: "Sales lead" } | Signed in user, shown as the avatar and account menu at the bottom of the rail. Avatar is an image URL. |
| brand | string | "Northwind" | Accessible name of the logo button at the top of the rail. |
| accent | string | "#1fa971" | Accent for the sliding bar, active tab, charts, quota ring and focus rings. |
| quota | { label: string; target: number; won: number } | { label: "Q4 quota", target: 480000, won: 346000 } | Quota card shown at the bottom of the panel and in the demo. |
| defaultSection | string | Section id shown first. Defaults to the first section. | |
| defaultActive | string | Subitem id that starts active. | |
| defaultPanelOpen | boolean | true | Whether the secondary panel starts open. On phones it starts closed and overlays the page when opened. |
| onNavigate | (sectionId: string, itemId: string) => void | Called when a section or subitem is chosen. | |
| children | React.ReactNode | Replace the demo CRM screen with your own page content. |
Source code is included in Standard and above