Carl Vitullo’s Sashay gives web apps a row of sliding panes, in the style of webOS. Think of an inbox that opens a message beside the list, then opens an attachment beside the message. Dividers snap to simple fractions, and earlier panes fold into a strip of tabs when the stack runs out of room. On narrow screens, tabs let readers switch among panes without dragging.

  • Setup: Install @vcarl/sashay and import its stylesheet. Use <Sashay> and <Pane> with React 19 or later, or call createSashay from plain JavaScript. The library is free under the MIT license.
  • Share a layout: Save the code from onLayoutChange in a URL query parameter and pass it back as layout. Your app still has to restore its own state, such as which message is selected.
  • Keyboard controls: The 1.3.1 release notes document Home and End support for focused dividers and attributes that tell assistive technology which pane each divider controls.

Caveat: The guide says adding or removing a pane’s bottom bar can invalidate previously saved layout codes. Those links fall back to the default layout.