Feature Library

Property panel from a schema, in a dockable window

0.55 CPU ms
A still of the Property panel from a schema, in a dockable window demo
Still
The live demo starts when it’s in view.Pick a poster · change it in the properties: a dot marks what differs from built in · Save, Copy or Revert · drag the window’s title bar to a side to dock it · As a file shows the export

An inspector built from a description of the settings.

What it costs a frame

0.55 ms
GPU
not used
CPU, median
0.55 ms
CPU, 95th pct
0.73 ms
Draw calls
0
Weight
Moderate

Measured 13 November 2026 on RTX 4060 Laptop, 13th Gen Intel(R) Core(TM) i9-13900H, Chrome 157, 1920×1080 at 1×. 600 frames × 3 rounds, median kept (rounds ranged CPU 0.54–0.57 ms). What ran: Measured exercising itself: each frame types a step into Title size and Corners through the panel (store, refresh, the poster redrawn), and every 40 frames another poster is opened (its fields rebuilt). Idle, nothing runs. Phones: tiers are being measured next.

On every machine it was measured on
MachineGPU msCPU msCPU p95
RTX 4060 Laptop · 13th Gen Intel(R) Core(TM) i9-13900Hreference · measuring toolnot timed0.550.73
apple · Apple A19 Proin a browser tab · 16 November 2026not timed0.720.96
Intel Arc 140V (Xe2-LPG) · Intel Core Ultra 7 258Vin a browser tab · 15 November 2026not timed1.021.64

Bars against one 16.7 ms frame. A browser-tab run is timed in a visible tab without the tool’s scripted input, so read it as close, not exact.

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

What it’s for

  1. Inspectors in design tools and editors
  2. Settings of a layer, an effect or a chart, described once
  3. Presets that ship built in and can be changed, reverted or copied
  4. Turning what someone made in an editor into a source file
  5. Tool windows people move, dock and resize
  6. A panel that becomes a sheet on a phone

Pitfalls, in brief

  1. Import property-panel.base.css, then property-panel.css (or your own look instead): the base places the window and its resize handle, keeps hidden parts hidden and draws the changed mark as a shape.
  2. The panel never keeps its own copy: commit writes to your store and you call refresh().
  3. Stored copies are untrusted: overrideStore leaves out any that fail the checks when it reads them, and a later copy of the same id wins.
  4. When an id can be edited (a copy of your own), check it against the ids taken before saving: save() keeps one copy per id, so a copy renamed to a built-in’s id replaces that one, and to another of yours, loses it.
  5. Save must refuse, not clamp: an imported or hand-edited definition can hold values the fields would never let through (a size of 400, 30 February).
6 more in brief
  1. A field whose key is a path ("pattern.spacing") is written with withValue, which copies each object on the way: never change the stored object in place, or the comparison with the built-in one sees no change.
  2. When a choice picks a kind from a catalog, replace that part of the value with the kind’s make() rather than keeping the old kind’s settings: they would be exported with it and mean nothing.
  3. An image is kept in the value as a JPEG data URL, scaled to maxSide (1100 px by default): a few hundred kB in localStorage at most.
  4. The window lives in a positioned container and fits itself to it (a ResizeObserver refits it).
  5. Docked windows should push the work aside, not cover it: read where it is from onPlace and pad your layout by its width (or height at the foot).
  6. The window is non-modal (role dialog, aria-modal false): focus is not trapped and Esc closes it.
11 pitfalls in full, the hook-up guide, the module source and its tests come with the part.

Where it comes from

From SpaciousPro. Fully custom code.

WAI-ARIA Authoring Practices Guide (W3C): the switch, radio group and tabs patterns, and the non-modal dialog for the window

GOV.UK Design System: the error summary in the demo, linking each problem to its field, as inspiration (no code)

property panelinspectorschemaform buildersettingscatalogdefaultsoverridesrevertexportvalidationcolour fielddate fieldimage fielddraftfloating windowdockingdragresizebottom sheetaccessibilitykeyboardtouchdom

Near it in the frame