← all demos

Tabs & sections

Tabs and sections are imperative: open one and the controls that follow go into it. Sections fold on click, and with a storageKey the panel remembers which tab was open and what was folded.

Try: fold a section, switch to another tab, then reload the page — the panel comes back the way you left it. The Advanced section only exists while Show advanced is on, and Attractor follows the field selector.

Remembered layout (localStorage)

panel.js