Feature Library

Dashboard grid: the board’s frame and slots

<0.01 CPU ms
A still of the Dashboard grid: the board’s frame and slots demo
Still
The live demo starts when it’s in view.Resize the window: the charts go from two a row to one, then the board folds to one column · the controls change the frame

The frame of a dashboard, with slots for other parts to fill.

The frame of a dashboard, with slots for other parts to fill: a slim header bar (the title, what it covers, when it was last updated, saying so when the figures are late, and a place for the date range and filters), then a 12-column grid with the one number top left, the row of figures beside it, charts two a row when the board is wide (each at least 480 px), and a full-width table. It lays itself out by its own width, not the window: one number above the figures and every panel full width below about 61rem, one column on a phone. Panels are told apart by a hairline over each heading or by one framed surface each, never cards inside cards. Plain TypeScript and CSS, styled by the shared tokens.

What it costs a frame

<0.01 ms
GPU
not used
CPU, median
<0.01 ms
CPU, 95th pct
<0.01 ms
Draw calls
0
Weight
Light

Measured 28 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 158, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU <0.01–<0.01 ms). What ran: Measured Alone: the empty frame with its five slots labelled, re-laid out when the stage is resized. In use fills the slots with plain markup. Phones: tiers are being measured next.

How steadily it runs on RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference

Typical frame ?
16.91 ms
1% low ?
53 fps
Varies by ?
±0.51 ms
All metricsRTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900H · reference
p50p95p9916.02 ms18.76 ms +
How long each frame took. Most frames sit in the tall bars; a long tail to the right is hitching.

Frames run on a 60 Hz timer (a page demo), so most frames take about one tick, 16.7 ms: the spread around it is what matters.

Frames

Median (p50) ?
16.91 ms
p95 ?
17.80 ms
p99 ?
18.31 ms
Slowest ?
19.41 ms
Mean ?
16.96 ms
Standard deviation ?
0.51 ms
1% low ?
53 fps
0.1% low ?
52 fps
Hitches ?
0 of 600
Over budget ?
0 of 600

Main thread

Long tasks ?
0
Long frames ?
0
Event-loop delay ?
0.1 / 0.3 / 1.2 ms

Input

No input during this run.

Memory

JavaScript heap ?
29.7 → 29.9 MB
Growth ?
+0.25 MB

Browser

JavaScript a frame ?
0.12 ms
All tasks a frame ?
0.31 ms
Layout / style ?
0.00 / 0.00 ms
Main thread busy ?
2%

Garbage collection

Collections ?
0 (0 minor, 0 major)
Pauses ?
0.0 ms in all, longest 0.0

What it needs

Renders with
DOM and CSSPlain DOM and CSS: every current browser.
Your browser
Runs hereNo WebGPU needed
Depends on
NothingNo other packages
With an agent
install("dashboard-grid")Your coding agent reads its pitfalls and installs it through the library’s MCP server. Set it up

What it’s for

  1. A company or team dashboard
  2. An operations or service-health board
  3. A sales or finance overview
  4. A report page of figures, charts and a table
  5. Any page that reads summary to detail

Pitfalls, in brief

  1. Import dashboard-grid.base.css, then dashboard-grid.css (or your own look): the base holds the grid and the layouts; without it every slot stacks.
  2. It places other parts; it draws no figures, charts or tables itself.
  3. The layout follows the board’s own width (a ResizeObserver and a container query), not the window: a board in a narrow side panel gets its phone layout on a wide screen.
  4. A chart in a half panel gets at most about 600 px at 1280 wide: draw it at its panel’s width (each chart part has a width option, or redraw on resize), never at a fixed size.
  5. The updated line is only as true as what you give it: call setUpdated(date) when the data arrives, not when the page draws, and set staleAfter so late figures say so.
4 more in brief
  1. The one number and the figures are one summary row: keep it to three to five figures.
  2. With sticky: true the bar is painted with --dbg-bar-bg (the page’s --bg) so content scrolls under it; set it to your page’s own background if that differs.
  3. Filters go in the bar on every layout; on a phone the bar stacks and the filters take a whole line.
  4. Panel headings are one level under the title (level, default 1: an h1 title and h2 panels).
9 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

Written for the library. Fully custom code.

dashboardlayoutgrid12 columnscontainer queriesheader barslotsresponsivephone layoutlast updatedstale dataaccessibilitydomno dependencies

Near it in the frame