# Switchboard — Page Template for React

> A dark, dense SaaS dashboard on the gantry app shell: collapsible icon-rail sidebar with mobile drawer, topbar with breadcrumbs, ⌘K command palette, and notifications bell, spotlight stat cards with odometer count-ups, a pure-CSS bar-chart panel with sliding range tabs, a recent-activity feed, and a services table — every region rebrandable through props.

- Page: https://crucibleui.com/components/templates/switchboard
- Category: [templates](https://crucibleui.com/components/templates)
- Tier: pro (one-time purchase, see https://crucibleui.com/pricing)
- Engine: motion
- npm dependencies: motion

## Install

```bash
npx shadcn@latest add @crucible/switchboard
```

Pro install requires adding the token-bearing `@crucible` registry to components.json (issued at https://crucibleui.com/account after purchase).

Import from `@/components/crucible/switchboard`.

## Props (`SwitchboardTemplateProps`)

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand?` | `string` | `"Relay"` | Brand name in the sidebar wordmark. |
| `logo?` | `React.ReactNode` | `the Relay relay-switch monogram` | Logo mark (24×24, ideally `currentColor`). |
| `accent?` | `string` | `"#67e8f9"` | Signature accent color (active nav, badges, chart bars, live dot). |
| `navItems?` | `SwitchboardNavItem[]` | `the six Relay items` | Sidebar nav items. |
| `stats?` | `SwitchboardStat[]` | `the four Relay stats` | Stat cards (animated count-ups). |
| `chartTitle?` | `string` | `"Event volume"` | Chart panel title. |
| `chartSubtitle?` | `string` | — | Chart panel subtitle. |
| `chartRanges?` | `SwitchboardChartRange[]` | `Relay 24h/7d/30d` | Chart range tabs + their bar data. |
| `activity?` | `SwitchboardActivityItem[]` | `the six Relay entries` | Recent-activity feed entries. |
| `services?` | `SwitchboardServiceRow[]` | `the five Relay services` | Services table rows. |
| `user?` | `SwitchboardUser` | `Imani Okafor` | Topbar user chip. |
| `notificationCount?` | `number` | `3` | Unread count on the notifications bell. |
| `pageTitle?` | `string` | `"Overview"` | Main heading. |
| `statusText?` | `string` | `"Live — all regions reporting"` | Live-status line next to the heading. |
| `searchPlaceholder?` | `string` | `"Search incidents, services, runbooks…"` | Search input placeholder. |
| `defaultCollapsed?` | `boolean` | `false` | Start with the sidebar collapsed to icon rail. |

Also accepts: `Omit<React.ComponentPropsWithoutRef<"div">, "children">`.

## Usage example

```tsx
import { SwitchboardTemplate } from "@/components/crucible/switchboard";

export default function SwitchboardTemplateDemo() {
  return (
    <div className="relative isolate h-[560px] w-full overflow-hidden rounded-xl bg-neutral-950">
      <SwitchboardTemplate />
    </div>
  );
}
```

## Accessibility & performance

Honors `prefers-reduced-motion` with a designed static frame or fade (never a blank box) and passes `className` through.
