WHITEBOARD DASHBOARD
DashboardShell
Sidebar column + main column with top bar and centred content. The classic admin layout; collapses to one column under 880px.
PREVIEW
SOURCE
import '@objectifthunes/whiteboard/style.css'
import { DashboardShell, Sidebar, TopBar, Page } from '@objectifthunes/whiteboard'
export default function AdminLayout({ children }) {
return (
<DashboardShell
sidebar={<Sidebar brand={brand} groups={groups} activeHref={active} />}
topbar={<TopBar crumb="acme / admin" actions={<TopBarLink>log out</TopBarLink>} />}
>
<Page>{children}</Page>
</DashboardShell>
)
}NOTES
DashboardShell is a min-height: 100vh two-column grid — mount it once as your admin layout, not per page. The preview above is a miniature: a docs-only clamp class overrides the viewport-scale rules (sticky sidebar, 100vh columns) to fit the box.
topbar is optional; children land in a centred, padded content column (--wb-dash-content-max). Under 880px the grid collapses to a single column and the sidebar becomes static.