Skip to the page
Tactile UI

Split panes

Two or more panes and a groove cut across the plate between each pair, with a knurled grip set in the groove. Drag a grip with a mouse, a pen or a finger, or give it focus and use the keys; Enter folds its pane away and brings it back. Side by side or one over the other, each pane keeps the least room you give it. Three panes take one track each, as in an inbox between the list and the details.

On this page
  1. Anatomy
  2. Variants
  3. States
  4. Props and options
  5. Usage notes
  6. Accessibility
  7. Related parts

Anatomy

With two panes the box is a grid of three tracks. With three or more, the box takes one track per pane and a gutter track between each pair. The groove is a pseudo-element cut in with the well tokens; the grip is a small cap with its ridges drawn as a repeating gradient, lit on its top and left edges and shadowed down and right; held, it sinks under the plate. Pointer capture keeps a drag on the divider wherever the pointer goes, and while it is held the panes take no pointer events, so a frame inside one cannot catch the drag.

Variants

  • Three panes · one track each
  • One over the other
  • The second pane folds

States

  • Rest
  • Hover
  • Held
  • Focus

Props and options

NameKindDescription
labelattributeWhat the panes are, for the divider’s name: “Files and preview” is read as “Resize files and preview”. With three panes give one name per pane, and each divider is named after the two beside it.
valueattributeThe first pane’s share of the box to start with, in the two-pane layout.
min · maxattributeThe least and the most the first pane may take, in the two-pane layout.
min-start · min-endattributeThe least room each pane keeps however small the box, in the two-pane layout. These win over min and max when they cannot all hold.
panesattributeThree or more panes, one track each. A px pane keeps that width, the fr pane takes the room left, and a % is read from the box. A pane missing from the list takes a share.
pane-min · pane-maxattributeThe least and the most each pane in a panes split may take, one value each and in the same order. Use 1fr for a pane with no maximum.
orientationattributeSide by side, the default, or one over the other.
stepattributeHow far one arrow press moves a divider; Shift moves four steps.
collapseattributeWhich pane Enter folds away: the first, by default, or the second. With three panes give one per divider, as in “start,end”.
splitClamp · splitKey · splitTogglefunctionThe two-pane rules, pure: a share every limit allows, what a key does, and folding and unfolding.
splitTracks · splitSizes · splitMove · splitFold · splitFit · splitLimitsfunctionThe row of panes, pure: the tracks, their sizes in pixels, one divider moved, a pane folded, the sizes fitted to a new box, and a per-pane limit list.

Usage notes

Drag a grip, or Tab to a divider and use the arrows (Shift moves four times as far). Home and End go to the divider’s limits. Enter or a double click folds its pane away and back. In the three-pane example each divider owns one pane.

Accessibility

  • Each divider is the WAI-ARIA window splitter.
  • Arrows move the divider that has focus, Home and End take it to its limits and Enter folds the pane it owns away and back.
  • With three panes every divider is its own tab stop. Tab reaches the first, then the second, and each one moves only its own boundary.
  • A folded pane is hidden and inert, so nothing in it can take focus while it is out of sight. The divider beside it dims its grip.
  • The divider takes the whole touch, so the page does not scroll under a drag.
  • Without the script the panes sit side by side, or one over the other, with all their content in reach; a row of three shares the width equally.

Scroll area

A scroll area is a region that scrolls, with its scroll bar made as a machined rail: a groove cut into the plate and a thumb like a fader cap riding in it. Scrolling itself is the browser’s own.

Panel

A face plate that groups what belongs together: a head, a rule, then the parts. Screws only on device-like panels.

File tree

Folders and files as a real tree, printed like a wiring diagram: traces with an elbow into every item, chevrons that turn, and the chosen file set in a recess with its lamp lit. Written as a plain nested list.