Sashay
A sliding-panes layout library for the web with resizable snapping dividers and URL-encoded layouts, built for React 19+ with a zero-dependency vanilla core.
At a Glance
Sashay core and React components are released under the MIT License and free to use, copy, modify and distribute.
Engagement
Available On
Listed Dec 2026
About Sashay
Sashay is an MIT-licensed sliding-panes layout library for the web, built by Carl Vitullo and published on npm as @vcarl/sashay. It arranges panes in a horizontal row, each separated by a draggable edge, in the style of webOS/Enyo. It ships React components (React 19 or newer) on top of a zero-dependency core, which can also be used from vanilla DOM code.
What It Is
Sashay is a layout component library for building multi-pane interfaces such as list/detail views. Developers wrap ordinary views in Pane components inside a Sashay frame, and users resize them by dragging the edge between panes. The project's docs describe it as a middle ground between a fully customisable UI and a simple responsive layout. The React components are server-rendered and usable from React Server Components. Outside React, createSashay(frame, options) provides the same layout as a vanilla DOM controller.
How the Panes Behave
- Dividers snap to simple fractions with a denominator up to six, and the grid gets finer as the frame widens.
- A quick throw carries the divider one or two snaps past the release point, based on release speed over the last 90 ms.
- A pane squeezed out of room slides under its neighbour.
- Any pane can have an expanding bottom bar for filters, settings or a table of contents.
- Deep navigation stacks fold panes that no longer fit into a slim spine with a tab for each.
- On a phone the edges become tabs.
- Every edge supports keyboard control with aria-valuenow.
Layout in the URL
Which panes are open, their widths and which bars are open encode into a short string that can be kept in the URL, so a shared link restores the same arrangement. An onLayoutChange callback lets apps save layouts.
Themes and Demos
The project site offers themes (House, Sash, Shoji, Greenhouse, Blueprint, Curtain, Sleeper) and two demos: a houseplants chart in three panes and a nested house-navigation example.
Collections
Popular collections
- ADE List - December 2026
Collection by @mateorivera17
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
Add Sashay to one of your collections.
Community Discussions
Be the first to start a conversation about Sashay
Share your experience with Sashay, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Sashay core and React components are released under the MIT License and free to use, copy, modify and distribute.
- MIT licensed
- React >=19 components
- Zero-dependency vanilla core (createSashay)
- Layout encoded in URL
- Resizable snapping dividers
Capabilities
Key Features
- Draggable pane edges that snap to simple fractions
- Throw gesture for flinging dividers
- Panes that slide under their neighbour when squeezed
- Expanding bottom bars per pane
- Navigation stacks that fold into a spine
- Layout encoded in a short URL string
- Keyboard support on every edge with aria-valuenow
- Mobile tab behavior for edges
- Server-rendered React components usable from React Server Components
- Zero-dependency vanilla DOM core
- Selectable themes
